We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c094f7 commit d9cf223Copy full SHA for d9cf223
src/main/java/org/scijava/io/location/AbstractLocation.java
@@ -32,6 +32,7 @@
32
33
package org.scijava.io.location;
34
35
+import java.net.URI;
36
import java.util.Objects;
37
38
/**
@@ -58,4 +59,13 @@ public boolean equals(final Object obj) {
58
59
return Objects.equals(getURI(), other.getURI());
60
}
61
62
+ @Override
63
+ public String toString() {
64
+ final String prefix = getClass().getSimpleName() + ":";
65
+ final URI uri = getURI();
66
+ if (uri != null) return prefix + uri;
67
+ final String name = getName();
68
+ if (name != null) return prefix + name;
69
+ return prefix + defaultName();
70
+ }
71
0 commit comments