MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / getJavaVersion

Method getJavaVersion

src/main/java/com/volmit/adapt/Adapt.java:197–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 }
196
197 public static int getJavaVersion() {
198 String version = System.getProperty("java.version");
199 if (version.startsWith("1.")) {
200 version = version.substring(2, 3);
201 } else {
202 int dot = version.indexOf(".");
203 if (dot != -1) {
204 version = version.substring(0, dot);
205 }
206 }
207 return Integer.parseInt(version);
208 }
209
210 public static void printInformation() {
211 debug("XP Curve: " + AdaptConfig.get().getXpCurve());

Callers 2

startupPrintMethod · 0.95
SecretSplashClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected