We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a3f011 commit bc0b7c6Copy full SHA for bc0b7c6
1 file changed
src/main/java/org/scijava/Versioned.java
@@ -31,6 +31,8 @@
31
32
package org.scijava;
33
34
+import org.scijava.util.VersionUtils;
35
+
36
/**
37
* An object that knows its version.
38
*
@@ -39,6 +41,9 @@
39
41
public interface Versioned {
40
42
43
/** Gets the version of the object. */
- String getVersion();
44
+ default String getVersion() {
45
+ return VersionUtils.getVersion(getClass());
46
+ }
47
48
49
}
0 commit comments