Dead code removed (wrong annotation target for enum)
This commit is contained in:
@@ -242,11 +242,6 @@ public class DeclarationsChecker {
|
||||
if (aClass.isLocal()) {
|
||||
trace.report(LOCAL_ENUM_NOT_ALLOWED.on(aClass, classDescriptor));
|
||||
}
|
||||
if (classDescriptor.getKind() == ClassKind.ANNOTATION_CLASS) {
|
||||
JetAnnotationEntry entry = aClass.getBuiltInAnnotationEntry();
|
||||
assert entry != null : "getBuiltinAnnotationEntry() should be synchronized with isAnnotation()";
|
||||
trace.report(WRONG_ANNOTATION_TARGET.on(entry, "enum class"));
|
||||
}
|
||||
}
|
||||
else if (classDescriptor.getKind() == ClassKind.ANNOTATION_CLASS) {
|
||||
checkAnnotationClassWithBody(aClass);
|
||||
|
||||
Reference in New Issue
Block a user