Do not annotate private members and their parameters (to save space)

This commit is contained in:
Andrey Breslav
2013-11-11 14:02:32 +04:00
parent 0959f7e37c
commit 1f574a9feb
9 changed files with 70 additions and 4 deletions
@@ -69,10 +69,18 @@ public class NullabilityAnnotationsTest extends KotlinAsJavaTestBase {
doTest(getTestName(false));
}
public void testPrivateInClass() throws Exception {
doTest(getTestName(false));
}
public void testPrivateInTrait() throws Exception {
doTest(getTestName(false));
}
private void doTest(@NotNull String fqName) {
PsiClass psiClass = finder.findClass(fqName, GlobalSearchScope.allScope(getProject()));
if (!(psiClass instanceof KotlinLightClass)) {
throw new IllegalStateException("Not a light class: " + psiClass);
throw new IllegalStateException("Not a light class: " + psiClass + " (" + fqName + ")");
}
PsiClass delegate = ((KotlinLightClass) psiClass).getDelegate();