Dead code removed (wrong annotation target for enum)

This commit is contained in:
Mikhail Glukhikh
2015-07-31 18:10:57 +03:00
parent 722a078968
commit a104b2c84c
@@ -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);