[CLEANUP] Formatted substring

This commit is contained in:
Jeroen Ketelaar
2019-05-07 22:29:04 -05:00
parent 25d9b29278
commit cd5c7413a2
+2 -2
View File
@@ -73,8 +73,8 @@ public class Context {
public static double getJavaVersion() {
String version = System.getProperty("java.version");
int pos = version.indexOf('.');
pos = version.indexOf('.', pos+1);
return Double.parseDouble(version.substring (0, pos));
pos = version.indexOf('.', pos + 1);
return Double.parseDouble(version.substring(0, pos));
}
/**