MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / checkOS

Method checkOS

src/main/java/core/packetproxy/common/Utils.java:72–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 };
71
72 public static Platform checkOS() {
73 String osname = System.getProperty("os.name");
74 if (osname.contains("Windows")) {
75
76 return Platform.WINDOWS;
77 } else if (osname.contains("Mac")) {
78
79 return Platform.MAC;
80 } else {
81
82 return Platform.LINUX;
83 }
84 }
85
86 /**
87 * OS判定用

Callers 4

isWindowsMethod · 0.95
isMacMethod · 0.95
addMonoPathMethod · 0.95
addRubyPathMethod · 0.95

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected