Skip to content

Commit

Permalink
Refactor depreciated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Apr 5, 2024
1 parent fe42e76 commit 036a299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/reandroid/apkeditor/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 036a299

Please sign in to comment.