Skip to content

Commit 036a299

Browse files
committed
Refactor depreciated methods
1 parent fe42e76 commit 036a299

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/com/reandroid/apkeditor

1 file changed

+3
-3
lines changed

src/main/java/com/reandroid/apkeditor/Util.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public static String isProtected(ApkModule apkModule){
184184
TableBlock tableBlock = apkModule.getTableBlock();
185185
String str = loadApkEditorProperties(tableBlock);
186186
properties = loadApkEditorProperties(str);
187-
} catch (Exception exception) {
187+
} catch (Exception ignored) {
188188
}
189189
if(properties == null){
190190
return null;
@@ -200,7 +200,7 @@ private static String loadApkEditorProperties(TableBlock tableBlock){
200200
return null;
201201
}
202202
TableStringPool stringPool = tableBlock.getTableStringPool();
203-
int count = stringPool.countStrings();
203+
int count = stringPool.size();
204204
TableString tableString = stringPool.get(count-1);
205205
return loadApkEditorProperties(tableString);
206206
}
@@ -237,7 +237,7 @@ private static void addApkEditorInfo(TableBlock tableBlock, String type){
237237
return;
238238
}
239239
TableStringPool stringPool = tableBlock.getTableStringPool();
240-
int count = stringPool.countStrings();
240+
int count = stringPool.size();
241241
if(count==0){
242242
return;
243243
}

0 commit comments

Comments
 (0)