Skip to content

Commit

Permalink
Fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
xmamo committed Nov 30, 2018
1 parent 0cfb40c commit 2918c6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mamo</groupId>
<artifactId>VanillaVotifier</artifactId>
<version>4.1</version>
<version>4.1.1</version>
<dependencies>
<dependency>
<groupId>org.jetbrains</groupId>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/mamo/vanillaVotifier/VanillaVotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -309,7 +309,8 @@ public VotifierServer getServer() {
return server;
}

public @NotNull Tester getTester() {
@NotNull
public Tester getTester() {
return tester;
}
}

0 comments on commit 2918c6c

Please sign in to comment.