From 2fd70277c17c2efff8b5a6c3fc5bd4dddc66736b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Jul 2014 12:38:53 +0200 Subject: Findbugs: Use Integer.parseInt(string) for int values to avoid boxing and unboxing --- .../classes/jogamp/opengl/android/av/AndroidGLMediaPlayerAPI14.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/jogamp/opengl/android/av') 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); -- cgit v1.2.3