Skip to content

Commit

Permalink
Don't instantiate utils
Browse files Browse the repository at this point in the history
  • Loading branch information
petebankhead committed Sep 10, 2024
1 parent 7fbde73 commit cf2ebe4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/qupath/ext/instanseg/ui/InstanSegUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
*/
class InstanSegUtils {

private InstanSegUtils() {
// Prevent instantiation
}

private static ObjectBinding<Path> modelDirectoryBinding = Bindings.createObjectBinding(
() -> tryToGetPath(InstanSegPreferences.modelDirectoryProperty().get()),
InstanSegPreferences.modelDirectoryProperty()
Expand Down

0 comments on commit cf2ebe4

Please sign in to comment.