Skip to content

Commit b4aaafd

Browse files
committed
Make Platforms.osName() helper method private
1 parent e780334 commit b4aaafd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scijava-common3/src/main/java/org/scijava/common3/Platforms.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ public static boolean isPOSIX() {
6161
return isMac() || isLinux();
6262
}
6363

64-
/** Gets the name of the operating system. */
65-
public static String osName() {
64+
// -- Helper methods --
65+
66+
private static String osName() {
6667
final String osName = System.getProperty("os.name");
67-
return osName == null ? "Unknown" : osName;
68+
return osName == null ? "" : osName;
6869
}
6970

7071
}

0 commit comments

Comments
 (0)