MCPcopy Create free account
hub / github.com/HumbleUI/JWM / Platform

Enum Platform

shared/java/Platform.java:3–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package io.github.humbleui.jwm;
2
3public enum Platform {
4 WINDOWS,
5 X11,
6 MACOS;
7
8 public static final Platform CURRENT;
9
10 static {
11 String os = System.getProperty("os.name").toLowerCase();
12 if (os.contains("mac") || os.contains("darwin"))
13 CURRENT = MACOS;
14 else if (os.contains("windows"))
15 CURRENT = WINDOWS;
16 else if (os.contains("nux") || os.contains("nix"))
17 CURRENT = X11;
18 else
19 throw new RuntimeException("Unsupported platform: " + os);
20 }
21}

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected