Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 406d032

Browse files
committed
Merge pull request #1364 from WonderCsabo/1363_allowAbstractEApplication
Allow abstract @eApplication not registered in the manifest
2 parents a895949 + dfbebb8 commit 406d032

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ public void applicationRegistered(Element element, AndroidManifest manifest, IsV
607607
String componentQualifiedName = typeElement.getQualifiedName().toString();
608608
String generatedComponentQualifiedName = componentQualifiedName + ModelConstants.GENERATION_SUFFIX;
609609

610-
if (!applicationClassName.equals(generatedComponentQualifiedName)) {
610+
if (!typeElement.getModifiers().contains(Modifier.ABSTRACT) && !applicationClassName.equals(generatedComponentQualifiedName)) {
611611
if (applicationClassName.equals(componentQualifiedName)) {
612612
valid.invalidate();
613613
annotationHelper.printAnnotationError(element, "The AndroidManifest.xml file contains the original component, and not the AndroidAnnotations generated component. Please register " + generatedComponentQualifiedName + " instead of " + componentQualifiedName);

0 commit comments

Comments
 (0)