|
25 | 25 | import static org.androidannotations.helper.CanonicalNameConstants.HTTP_MESSAGE_CONVERTER; |
26 | 26 | import static org.androidannotations.helper.CanonicalNameConstants.INTERNET_PERMISSION; |
27 | 27 | import static org.androidannotations.helper.ModelConstants.GENERATION_SUFFIX; |
| 28 | +import static org.androidannotations.helper.ModelConstants.VALID_ENHANCED_COMPONENT_ANNOTATIONS; |
| 29 | +import static org.androidannotations.helper.ModelConstants.VALID_ENHANCED_VIEW_SUPPORT_ANNOTATIONS; |
28 | 30 |
|
29 | 31 | import java.lang.annotation.Annotation; |
30 | 32 | import java.util.ArrayList; |
|
49 | 51 | import javax.lang.model.util.Elements; |
50 | 52 |
|
51 | 53 | import org.androidannotations.annotations.EActivity; |
52 | | -import org.androidannotations.annotations.EApplication; |
53 | 54 | import org.androidannotations.annotations.EBean; |
54 | 55 | import org.androidannotations.annotations.EFragment; |
55 | | -import org.androidannotations.annotations.EProvider; |
56 | | -import org.androidannotations.annotations.EReceiver; |
57 | | -import org.androidannotations.annotations.EService; |
58 | | -import org.androidannotations.annotations.EView; |
59 | | -import org.androidannotations.annotations.EViewGroup; |
60 | 56 | import org.androidannotations.annotations.Trace; |
61 | 57 | import org.androidannotations.annotations.ViewById; |
62 | 58 | import org.androidannotations.annotations.rest.Delete; |
@@ -91,12 +87,6 @@ public class ValidatorHelper { |
91 | 87 |
|
92 | 88 | private static final Collection<Integer> VALID_LOG_LEVELS = Arrays.asList(LOG_VERBOSE, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR); |
93 | 89 |
|
94 | | - @SuppressWarnings("unchecked") |
95 | | - private static final List<Class<? extends Annotation>> VALID_ENHANCED_VIEW_SUPPORT_ANNOTATIONS = asList(EActivity.class, EViewGroup.class, EView.class, EBean.class, EFragment.class); |
96 | | - |
97 | | - @SuppressWarnings("unchecked") |
98 | | - private static final List<Class<? extends Annotation>> VALID_ENHANCED_COMPONENT_ANNOTATIONS = asList(EApplication.class, EActivity.class, EViewGroup.class, EView.class, EBean.class, EService.class, EReceiver.class, EProvider.class, EFragment.class); |
99 | | - |
100 | 90 | protected final TargetAnnotationHelper annotationHelper; |
101 | 91 |
|
102 | 92 | public ValidatorHelper(TargetAnnotationHelper targetAnnotationHelper) { |
|
0 commit comments