Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix the unchecked conversion warning for searchPaths in PlayStoreDynamicFeatureManager #22654

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public PlayStoreDynamicFeatureManager(@NonNull Context context, @Nullable Flutte
splitInstallManager = SplitInstallManagerFactory.create(context);
listener = new FeatureInstallStateUpdatedListener();
splitInstallManager.registerListener(listener);
sessionIdToName = new SparseArray<String>();
sessionIdToName = new SparseArray<>();
sessionIdToLoadingUnitId = new SparseIntArray();
}

Expand Down Expand Up @@ -294,10 +294,10 @@ public void loadDartLibrary(int loadingUnitId, String moduleName) {
// performant and robust.

// Search directly in APKs first
List<String> apkPaths = new ArrayList<String>();
List<String> apkPaths = new ArrayList<>();
// If not found in APKs, we check in extracted native libs for the lib directly.
List<String> soPaths = new ArrayList<String>();
Queue<File> searchFiles = new LinkedList<File>();
List<String> soPaths = new ArrayList<>();
Queue<File> searchFiles = new LinkedList<>();
searchFiles.add(context.getFilesDir());
while (!searchFiles.isEmpty()) {
File file = searchFiles.remove();
Expand All @@ -317,7 +317,7 @@ public void loadDartLibrary(int loadingUnitId, String moduleName) {
}
}

List<String> searchPaths = new ArrayList();
List<String> searchPaths = new ArrayList<>();
for (String path : apkPaths) {
searchPaths.add(path + "!lib/" + abi + "/" + aotSharedLibraryName);
}
Expand Down