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 cb14730 commit b52332eCopy full SHA for b52332e
src/main/java/org/scijava/io/AbstractLocation.java
@@ -31,20 +31,11 @@
31
32
package org.scijava.io;
33
34
-import java.net.URI;
35
-
36
/**
37
* Abstract base class for {@link Location} implementations.
38
*
39
* @author Curtis Rueden
40
*/
41
public abstract class AbstractLocation implements Location {
42
43
- // -- Location methods --
44
45
- @Override
46
- public URI getURI() {
47
- return null;
48
- }
49
+ // NB: No implementation needed.
50
}
src/main/java/org/scijava/io/Location.java
@@ -53,6 +53,8 @@ public interface Location {
53
* Gets the location expressed as a {@link URI}, or null if the location
54
* cannot be expressed as such.
55
56
- URI getURI();
+ default URI getURI() {
57
+ return null;
58
+ }
59
60
0 commit comments