Fixed implicit boxing and unboxing of Java Objects warning.

This commit is contained in:
Philipp Wiesemann 2014-05-29 22:53:53 +02:00
parent 8d11db2f93
commit 1f111f3ddc

View file

@ -1018,12 +1018,12 @@ class SDLJoystickHandler_API12 extends SDLJoystickHandler {
if (device_id == deviceIds[j]) break; if (device_id == deviceIds[j]) break;
} }
if (j == deviceIds.length) { if (j == deviceIds.length) {
removedDevices.add(device_id); removedDevices.add(Integer.valueOf(device_id));
} }
} }
for(int i=0; i < removedDevices.size(); i++) { for(int i=0; i < removedDevices.size(); i++) {
int device_id = removedDevices.get(i); int device_id = removedDevices.get(i).intValue();
SDLActivity.nativeRemoveJoystick(device_id); SDLActivity.nativeRemoveJoystick(device_id);
for (int j=0; j < mJoysticks.size(); j++) { for (int j=0; j < mJoysticks.size(); j++) {
if (mJoysticks.get(j).device_id == device_id) { if (mJoysticks.get(j).device_id == device_id) {