summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Cuchaz2015-09-22 10:13:44 -0400
committerGravatar Cuchaz2015-09-22 10:13:44 -0400
commit3796df7eca2ca0b3b23a04cec4d9d96b3cd52e42 (patch)
tree9ff59e27e3a72e6326d7ee335878796dec51b691
parentAdded a Command-line interface to ConvertMain (diff)
downloadenigma-3796df7eca2ca0b3b23a04cec4d9d96b3cd52e42.tar.gz
enigma-3796df7eca2ca0b3b23a04cec4d9d96b3cd52e42.tar.xz
enigma-3796df7eca2ca0b3b23a04cec4d9d96b3cd52e42.zip
fix compile errors ... >.>
suppress some warnings too
-rw-r--r--src/cuchaz/enigma/ConvertMain.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cuchaz/enigma/ConvertMain.java b/src/cuchaz/enigma/ConvertMain.java
index cf231a25..9a370115 100644
--- a/src/cuchaz/enigma/ConvertMain.java
+++ b/src/cuchaz/enigma/ConvertMain.java
@@ -47,10 +47,10 @@ public class ConvertMain {
47 String outVer = getArg(args, 3, "New Version", true); 47 String outVer = getArg(args, 3, "New Version", true);
48 String outSnapshot = getArg(args, 4, "New Snapshot", true); 48 String outSnapshot = getArg(args, 4, "New Snapshot", true);
49 String side = getArg(args, 5, "Side", true); 49 String side = getArg(args, 5, "Side", true);
50 if(inSnapshot.equalsIgnoreCase("none"){ 50 if(inSnapshot.equalsIgnoreCase("none")){
51 inSnapshot = null; 51 inSnapshot = null;
52 } 52 }
53 if(outSnapshot.equalsIgnoreCase("none"){ 53 if(outSnapshot.equalsIgnoreCase("none")){
54 outSnapshot = null; 54 outSnapshot = null;
55 } 55 }
56 //Get the home Directory 56 //Get the home Directory
@@ -166,6 +166,7 @@ public class ConvertMain {
166 }); 166 });
167 } 167 }
168 168
169 @SuppressWarnings("unused")
169 private static void convertMappings(File outMappingsFile, JarFile sourceJar, JarFile destJar, Mappings mappings, File classMatchesFile) 170 private static void convertMappings(File outMappingsFile, JarFile sourceJar, JarFile destJar, Mappings mappings, File classMatchesFile)
170 throws IOException { 171 throws IOException {
171 System.out.println("Reading class matches..."); 172 System.out.println("Reading class matches...");
@@ -232,6 +233,7 @@ public class ConvertMain {
232 }); 233 });
233 } 234 }
234 235
236 @SuppressWarnings("unused")
235 private static void convertMappings(File outMappingsFile, JarFile sourceJar, JarFile destJar, Mappings mappings, File classMatchesFile, File fieldMatchesFile) 237 private static void convertMappings(File outMappingsFile, JarFile sourceJar, JarFile destJar, Mappings mappings, File classMatchesFile, File fieldMatchesFile)
236 throws IOException { 238 throws IOException {
237 239