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 c1efb23 commit 6b60808Copy full SHA for 6b60808
src/main/java/io/asfjava/ui/core/SchemaDecoratorFactory.java
@@ -1,13 +1,14 @@
1
package io.asfjava.ui.core;
2
3
import java.util.Map;
4
+import java.util.Optional;
5
import java.util.concurrent.ConcurrentHashMap;
6
7
import io.asfjava.ui.core.schema.decorators.SchemaDecorator;
8
9
public final class SchemaDecoratorFactory {
- public SchemaDecorator getDecorator(String annotationName) {
10
- return decorators.get(annotationName);
+ public Optional<SchemaDecorator> getDecorator(String annotationName) {
11
+ return Optional.ofNullable(decorators.get(annotationName));
12
}
13
14
void register(String annotationName, SchemaDecorator generator) {
0 commit comments