소스 검색

Fixed warning about implicit boxing to Java Object.

Philipp Wiesemann 12 년 전
부모
커밋
197a7cae5f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      android-project/src/org/libsdl/app/SDLActivity.java

+ 2 - 2
android-project/src/org/libsdl/app/SDLActivity.java

@@ -549,8 +549,8 @@ public class SDLActivity extends Activity {
     public InputStream openAPKExtensionInputStream(String fileName) throws IOException {
         // Get a ZipResourceFile representing a merger of both the main and patch files
         if (expansionFile == null) {
-            Integer mainVersion = Integer.parseInt(nativeGetHint("SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION"));
-            Integer patchVersion = Integer.parseInt(nativeGetHint("SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION"));
+            Integer mainVersion = Integer.valueOf(nativeGetHint("SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION"));
+            Integer patchVersion = Integer.valueOf(nativeGetHint("SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION"));
 
             try {
                 // To avoid direct dependency on Google APK extension library that is