We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806815f commit 8dd2bb4Copy full SHA for 8dd2bb4
src/main/java/io/asfjava/ui/core/schema/CustomStringSchema.java
@@ -13,8 +13,9 @@ class CustomStringSchema extends StringSchema {
13
public void enrichWithBeanProperty(BeanProperty beanProperty) {
14
super.enrichWithBeanProperty(beanProperty);
15
Iterable<Annotation> it = beanProperty.getMember().annotations();
16
- String anno = it.iterator().next().annotationType().getName();
17
- SchemaDecoratorFactory.getInstance().getDecorator(anno).customizeSchema(beanProperty, this);
+ it.forEach(
+ annotation -> SchemaDecoratorFactory.getInstance().getDecorator(annotation.annotationType().getName())
18
+ .ifPresent(decorator -> decorator.customizeSchema(beanProperty, this)));
19
}
20
21
0 commit comments