@NotNull annotations on descriptor classes

This commit is contained in:
Andrey Breslav
2013-11-19 16:37:17 +04:00
parent 6dde064791
commit 0c2e1fb806
16 changed files with 24 additions and 0 deletions
@@ -268,6 +268,7 @@ public class TypeDeserializer {
return descriptor != null && ErrorUtils.isError(descriptor);
}
@NotNull
@Override
public List<AnnotationDescriptor> getAnnotations() {
return Collections.emptyList();
@@ -199,11 +199,13 @@ public class DeserializedClassDescriptor extends AbstractClassDescriptor impleme
return annotationDeserializer.loadClassAnnotations(this, classProto);
}
@NotNull
@Override
public List<AnnotationDescriptor> getAnnotations() {
return annotations.invoke();
}
@NotNull
@Override
protected JetScope getScopeForMemberLookup() {
return memberScope;
@@ -359,6 +361,7 @@ public class DeserializedClassDescriptor extends AbstractClassDescriptor impleme
return DeserializedClassDescriptor.this;
}
@NotNull
@Override
public List<AnnotationDescriptor> getAnnotations() {
return Collections.emptyList(); // TODO