diff --git a/pom.xml b/pom.xml index 2f45975..69467f3 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 4.0.0 mamo VanillaVotifier - 4.1 + 4.1.1 org.jetbrains diff --git a/src/main/java/mamo/vanillaVotifier/VanillaVotifier.java b/src/main/java/mamo/vanillaVotifier/VanillaVotifier.java index 2f56b98..8554799 100644 --- a/src/main/java/mamo/vanillaVotifier/VanillaVotifier.java +++ b/src/main/java/mamo/vanillaVotifier/VanillaVotifier.java @@ -69,7 +69,7 @@ public VanillaVotifier(@NotNull LanguagePack languagePack, @NotNull Writer logWr public static void main(@Nullable String[] arguments) { String[] javaVersion = System.getProperty("java.version").split("\\."); - if (!(javaVersion.length >= 1 && Integer.parseInt(javaVersion[0]) >= 1 && javaVersion.length >= 2 && Integer.parseInt(javaVersion[1]) >= 6)) { + if (!(javaVersion.length >= 2 && ((Integer.parseInt(javaVersion[0]) == 1 && Integer.parseInt(javaVersion[1]) >= 6) || Integer.parseInt(javaVersion[0]) >= 2))) { System.out.println(("You need at least Java 1.6 to run this program! Current version: " + System.getProperty("java.version") + ".")); return; } @@ -309,7 +309,8 @@ public VotifierServer getServer() { return server; } - public @NotNull Tester getTester() { + @NotNull + public Tester getTester() { return tester; } } \ No newline at end of file