Skip to content

Commit 44d1674

Browse files
Wider version (#38)
* Use the defined version * Allow snapshot and RCs * Use comaprator
1 parent b782c39 commit 44d1674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/qupath/ext/djl/DjlExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class DjlExtension implements QuPathExtension, GitHubProject {
5050

5151
@Override
5252
public void installExtension(QuPathGUI qupath) {
53-
if (QuPathGUI.getVersion().compareTo(getQuPathVersion()) < 0) {
53+
if (Version.COMPARATOR_MAJOR_MINOR_PATCH.compare(QuPathGUI.getVersion(), getQuPathVersion()) < 0) {
5454
throw new UnsupportedOperationException("This extension version is incompatible with QuPath < v" + getQuPathVersion());
5555
}
5656
logger.debug("Installing Deep Java Library extension");

0 commit comments

Comments
 (0)