summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/android
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-08 12:38:53 +0200
committerSven Gothel <[email protected]>2014-07-08 12:38:53 +0200
commit2fd70277c17c2efff8b5a6c3fc5bd4dddc66736b (patch)
tree2646c30f48c749bbe5d5edb384e35bd7feb31464 /src/jogl/classes/jogamp/opengl/android
parentb388a572c8ef9c971dbc16b89069429cc67c0928 (diff)
Findbugs: Use Integer.parseInt(string) for int values to avoid boxing and unboxing
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/android')
-rw-r--r--src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java b/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java
index ea23b5239..24b89cd02 100644
--- a/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java
+++ b/src/jogl/classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java
@@ -263,7 +263,7 @@ public class AndroidGLMediaPlayerAPI14 extends GLMediaPlayerImpl {
} else {
int cameraId = 0;
try {
- cameraId = Integer.valueOf(cameraPath);
+ cameraId = Integer.parseInt(cameraPath);
} catch (final NumberFormatException nfe) {}
if( 0 <= cameraId && cameraId < Camera.getNumberOfCameras() ) {
cam = Camera.open(cameraId);