Merge branch '1.2.x'
This commit is contained in:
commit
3763eda64e
|
|
@ -127,10 +127,13 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
|
||||||
RoundEnvironment roundEnv) {
|
RoundEnvironment roundEnv) {
|
||||||
this.metadataCollector.processing(roundEnv);
|
this.metadataCollector.processing(roundEnv);
|
||||||
Elements elementUtils = this.processingEnv.getElementUtils();
|
Elements elementUtils = this.processingEnv.getElementUtils();
|
||||||
for (Element element : roundEnv.getElementsAnnotatedWith(elementUtils
|
TypeElement annotationType = elementUtils
|
||||||
.getTypeElement(configurationPropertiesAnnotation()))) {
|
.getTypeElement(configurationPropertiesAnnotation());
|
||||||
|
if (annotationType != null) { // Is @ConfigurationProperties available
|
||||||
|
for (Element element : roundEnv.getElementsAnnotatedWith(annotationType)) {
|
||||||
processElement(element);
|
processElement(element);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (roundEnv.processingOver()) {
|
if (roundEnv.processingOver()) {
|
||||||
writeMetaData();
|
writeMetaData();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue