Skip to content

Commit 9b06fdf

Browse files
committed
Avoid boxing/unboxing when parsing primitive
1 parent 5972c44 commit 9b06fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Preferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class Preferences {
6464
* Windows XP needs 66, and my Ubuntu machine needs 80+, so 80 seems proper.
6565
*/
6666
static public int BUTTON_WIDTH =
67-
Integer.valueOf(Language.text("preferences.button.width"));
67+
Integer.parseInt(Language.text("preferences.button.width"));
6868

6969
/** height of the EditorHeader, EditorToolbar, and EditorStatus */
7070
static final int GRID_SIZE = 32;

0 commit comments

Comments
 (0)