Skip to content

Commit

Permalink
Android: use List.sort() instead of Collections
Browse files Browse the repository at this point in the history
The latter gives a warning.

Change-Id: I6c1a4ac5f1de3d9008a7d669506a4d2997a1d82b
Reviewed-by: Petri Virkkunen <[email protected]>
  • Loading branch information
Issam-b committed Oct 30, 2024
1 parent 8dd9fd4 commit 020adc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static ArrayList<JFileInfo> getApkFileInfos(String apkPath)
}

// sort alphabetically based on the file path
Collections.sort(fileInfos, new Comparator<JFileInfo>() {
fileInfos.sort(new Comparator<JFileInfo>() {
@Override
public int compare(JFileInfo info1, JFileInfo info2) {
return info1.relativePath.compareTo(info2.relativePath);
Expand Down

0 comments on commit 020adc6

Please sign in to comment.