Allow NestedConfigurationProperty on getters
This commit adds support adding `@NestedConfigurationProperty` on a getter. See gh-38844
This commit is contained in:
committed by
Stéphane Nicoll
parent
5d4a777d27
commit
6c8987e0d8
@@ -53,7 +53,8 @@ class JavaBeanPropertyDescriptor extends PropertyDescriptor {
|
||||
|
||||
@Override
|
||||
protected boolean isMarkedAsNested(MetadataGenerationEnvironment environment) {
|
||||
return environment.getNestedConfigurationPropertyAnnotation(this.field) != null;
|
||||
return environment.getNestedConfigurationPropertyAnnotation(this.field) != null
|
||||
|| environment.getNestedConfigurationPropertyAnnotation(getGetter()) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user