Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
Format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Jun 15, 2014
1 parent 4a3163f commit 03a7a80
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ public class JavaLanguageSupport extends LanguageSupport {
/** TopCoder supports java 1.8. */
private static String eclipseAndJvmSupportedJavaVersion() {
boolean jvm18Installed = false;
for(IVMInstallType vm : JavaRuntime.getVMInstallTypes()) {
for(IVMInstall inst : vm.getVMInstalls()) {
if(inst instanceof IVMInstall2) {
for (IVMInstallType vm : JavaRuntime.getVMInstallTypes()) {
for (IVMInstall inst : vm.getVMInstalls()) {
if (inst instanceof IVMInstall2) {
String jvmVersion = ((IVMInstall2) inst).getJavaVersion();
String[] jvmVersionParts = jvmVersion.split("\\.");
String[] jvmVersionParts = jvmVersion.split("\\.");
int major = Integer.parseInt(jvmVersionParts[0]);
int minor = Integer.parseInt(jvmVersionParts[1]);
if((major == 1 && minor >= 8) || major >=2) {
if ((major == 1 && minor >= 8) || major >= 2) {
jvm18Installed = true;
}
}
Expand Down

0 comments on commit 03a7a80

Please sign in to comment.