We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e11e2e + 8bbd4f8 commit 8fa230aCopy full SHA for 8fa230a
src/main/java/org/scijava/annotations/AbstractIndexWriter.java
@@ -45,6 +45,8 @@
45
import java.util.Map.Entry;
46
import java.util.TreeMap;
47
48
+import javax.lang.model.element.AnnotationValue;
49
+
50
/**
51
* Writes annotations as JSON-formatted files.
52
* <p>
@@ -170,6 +172,9 @@ protected Object adapt(final Object o) {
170
172
if (o instanceof Annotation) {
171
173
return adapt((Annotation) o);
174
}
175
+ else if (o instanceof AnnotationValue) {
176
+ return adapt(((AnnotationValue) o).getValue());
177
+ }
178
else if (o instanceof Enum) {
179
return adapt((Enum<?>) o);
180
0 commit comments