Change MISSING_CONSTRUCTOR_KEYWORD severity to error

And adjust testData
This commit is contained in:
Denis Zharkov
2015-06-10 12:46:14 +03:00
parent eb7114bd53
commit e3c3af6aab
22 changed files with 26 additions and 20 deletions
@@ -199,7 +199,7 @@ public class AnnotationGenTest extends CodegenTestCase {
}
public void testConstructor() throws NoSuchFieldException, NoSuchMethodException {
loadText("class A @[Deprecated] () {}");
loadText("class A @[Deprecated] constructor() {}");
Class<?> aClass = generateClass("A");
Constructor x = aClass.getDeclaredConstructor();
Deprecated annotation = (Deprecated) x.getAnnotation(Deprecated.class);