We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e780334 commit b4aaafdCopy full SHA for b4aaafd
scijava-common3/src/main/java/org/scijava/common3/Platforms.java
@@ -61,10 +61,11 @@ public static boolean isPOSIX() {
61
return isMac() || isLinux();
62
}
63
64
- /** Gets the name of the operating system. */
65
- public static String osName() {
+ // -- Helper methods --
+
66
+ private static String osName() {
67
final String osName = System.getProperty("os.name");
- return osName == null ? "Unknown" : osName;
68
+ return osName == null ? "" : osName;
69
70
71
0 commit comments