From 036a2990647442c61be0e7d9264f4ad1591a7290 Mon Sep 17 00:00:00 2001 From: REAndroid Date: Fri, 5 Apr 2024 23:08:20 +0200 Subject: [PATCH] Refactor depreciated methods --- src/main/java/com/reandroid/apkeditor/Util.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/reandroid/apkeditor/Util.java b/src/main/java/com/reandroid/apkeditor/Util.java index 9d8ee8e2..b0ed4eeb 100644 --- a/src/main/java/com/reandroid/apkeditor/Util.java +++ b/src/main/java/com/reandroid/apkeditor/Util.java @@ -184,7 +184,7 @@ public static String isProtected(ApkModule apkModule){ TableBlock tableBlock = apkModule.getTableBlock(); String str = loadApkEditorProperties(tableBlock); properties = loadApkEditorProperties(str); - } catch (Exception exception) { + } catch (Exception ignored) { } if(properties == null){ return null; @@ -200,7 +200,7 @@ private static String loadApkEditorProperties(TableBlock tableBlock){ return null; } TableStringPool stringPool = tableBlock.getTableStringPool(); - int count = stringPool.countStrings(); + int count = stringPool.size(); TableString tableString = stringPool.get(count-1); return loadApkEditorProperties(tableString); } @@ -237,7 +237,7 @@ private static void addApkEditorInfo(TableBlock tableBlock, String type){ return; } TableStringPool stringPool = tableBlock.getTableStringPool(); - int count = stringPool.countStrings(); + int count = stringPool.size(); if(count==0){ return; }