Sfoglia il codice sorgente

Don't parse to an Integer then unbox.

Change-Id: I0f6ccc2a3af5a10a6d92e4b01f30f4f805c8f56c
Reviewed-on: http://gerrit.dmdirc.com/4003
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
pull/1/head
Chris Smith 9 anni fa
parent
commit
2fc90da41d

+ 2
- 2
src/com/dmdirc/commandparser/aliases/ActionAliasMigrator.java Vedi File

@@ -150,10 +150,10 @@ public class ActionAliasMigrator implements Migrator {
150 150
             if (section.containsKey("comparison")
151 151
                     && section.containsKey("target")) {
152 152
                 if ("INT_GREATER".equals(section.get("comparison"))) {
153
-                    return 1 + Integer.valueOf(section.get("target"));
153
+                    return 1 + Integer.parseInt(section.get("target"));
154 154
                 }
155 155
                 if ("INT_EQUALS".equals(section.get("comparison"))) {
156
-                    return Integer.valueOf(section.get("target"));
156
+                    return Integer.parseInt(section.get("target"));
157 157
                 }
158 158
             }
159 159
         }

Loading…
Annulla
Salva