@Override protected void validate(Element element, ElementValidation validation) { if (validatorHelper.elementHasAnnotation(EActivity.class, element.getEnclosingElement()) || validatorHelper.elementHasAnnotation(EFragment.class, element.getEnclosingElement())) { validatorHelper.isNotPrivate(element, validation); validatorHelper.isNotFinal(element, validation); validatorHelper.returnTypeIsVoid((ExecutableElement) element, validation); } }
private void loadApiPropertyFile() throws FileNotFoundException { String filename = "androidannotations-api.properties"; try { URL url = EActivity.class.getClassLoader().getResource(filename); propertiesApi.load(url.openStream()); } catch (Exception e) { LOGGER.error("API property file {} couldn't be parsed"); throw new FileNotFoundException("API property file " + filename + " couldn't be parsed. Please check your classpath and verify that AA-API's version is at least 3.0"); } }