Make SonarQube happier with the source code

This commit is contained in:
Marko Zivanovic
2015-03-11 11:07:33 +01:00
parent cabfc67b99
commit 10be4bfd8e
8 changed files with 81 additions and 18 deletions
+4
View File
@@ -121,4 +121,8 @@
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<prerequisites>
<maven>3.0.4</maven>
</prerequisites>
</project>
@@ -33,7 +33,10 @@ import java.util.Map.Entry;
*/
public class Main {
public static void main(String args[]) {
private Main() {
}
public static void main(String[] args) {
JCommander jc = new JCommander();
Map<String, Runnable> commands = new HashMap<>();
Map<String, String[]> aliases = new HashMap<>();
@@ -55,7 +58,7 @@ public class Main {
jc.usage();
}
} catch (RuntimeException ex) {
System.err.println(ex.getMessage());
System.err.println("ERROR: " + ex.getMessage());
}
}