Skip to content

Commit 65e64af

Browse files
committed
remove unused method
1 parent e6765b1 commit 65e64af

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

  • AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/helper

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/helper/ValidatorHelper.java‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -917,29 +917,6 @@ public void isAbstractOrHasEmptyConstructor(Element element, IsValid valid) {
917917
}
918918
}
919919

920-
public void hasEmptyConstructor(Element element, IsValid valid) {
921-
922-
List<ExecutableElement> constructors = ElementFilter.constructorsIn(element.getEnclosedElements());
923-
924-
if (constructors.size() == 1) {
925-
926-
ExecutableElement constructor = constructors.get(0);
927-
928-
if (!annotationHelper.isPrivate(constructor)) {
929-
if (constructor.getParameters().size() != 0) {
930-
annotationHelper.printAnnotationError(element, "%s annotated element should have an empty constructor");
931-
valid.invalidate();
932-
}
933-
} else {
934-
annotationHelper.printAnnotationError(element, "%s annotated element should not have a private constructor");
935-
valid.invalidate();
936-
}
937-
} else {
938-
annotationHelper.printAnnotationError(element, "%s annotated element should have only one constructor");
939-
valid.invalidate();
940-
}
941-
}
942-
943920
public void hasValidLogLevel(Element element, IsValid isValid) {
944921

945922
Trace annotation = element.getAnnotation(Trace.class);

0 commit comments

Comments
 (0)