Optimize creation of boxed primitives

This commit is contained in:
Federico Bond
2014-08-25 03:50:14 -03:00
parent 25ed6fed3b
commit 80f64013a4
13 changed files with 35 additions and 35 deletions

View File

@@ -577,7 +577,7 @@ public class JavaEditor extends Editor {
Object value = optionPane.getValue();
if (value.equals(options[0])) {
return jmode.handleExportApplication(sketch);
} else if (value.equals(options[1]) || value.equals(new Integer(-1))) {
} else if (value.equals(options[1]) || value.equals(Integer.valueOf(-1))) {
// closed window by hitting Cancel or ESC
statusNotice("Export to Application canceled.");
}
@@ -832,4 +832,4 @@ public class JavaEditor extends Editor {
//jmode.handleStop();
handleStop();
}
}
}