diff options
author | Sven Gothel <[email protected]> | 2014-07-08 12:38:53 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-07-08 12:38:53 +0200 |
commit | 2fd70277c17c2efff8b5a6c3fc5bd4dddc66736b (patch) | |
tree | 2646c30f48c749bbe5d5edb384e35bd7feb31464 /src/jogl/classes/jogamp/opengl/util | |
parent | b388a572c8ef9c971dbc16b89069429cc67c0928 (diff) |
Findbugs: Use Integer.parseInt(string) for int values to avoid boxing and unboxing
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java index e5369e108..6aa753ac1 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java +++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java @@ -1623,7 +1623,7 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { protected static final int getPropIntVal(final Map<String, String> props, final String key) { final String val = props.get(key); try { - return Integer.valueOf(val).intValue(); + return Integer.parseInt(val); } catch (final NumberFormatException nfe) { if(DEBUG) { System.err.println("Not a valid integer for <"+key+">: <"+val+">"); |