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 5a857fc commit 4de9deeCopy full SHA for 4de9dee
src/edu/cmu/cs/openslide/gui/Annotation.java
@@ -63,13 +63,15 @@ public Bean() {
63
}
64
65
public Annotation toAnnotation() {
66
- Map<String, String> annotations = null;
+ Map<String, String> annotations;
67
if (this.annotations != null) {
68
annotations = new HashMap<String, String>();
69
for (int i = 0; i < this.annotations.length; i++) {
70
Pair p = this.annotations[i];
71
annotations.put(p.getName(), p.getValue());
72
73
+ } else {
74
+ annotations = Collections.emptyMap();
75
76
77
String[] segs = shape.split(" ");
0 commit comments