mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +00:00
[CLEANUP] Formatted substring
This commit is contained in:
@@ -73,8 +73,8 @@ public class Context {
|
|||||||
public static double getJavaVersion() {
|
public static double getJavaVersion() {
|
||||||
String version = System.getProperty("java.version");
|
String version = System.getProperty("java.version");
|
||||||
int pos = version.indexOf('.');
|
int pos = version.indexOf('.');
|
||||||
pos = version.indexOf('.', pos+1);
|
pos = version.indexOf('.', pos + 1);
|
||||||
return Double.parseDouble(version.substring (0, pos));
|
return Double.parseDouble(version.substring(0, pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user