Skip to content

Commit 1c2a6bd

Browse files
Fix the unchecked conversion warning for searchPaths in PlayStoreDynamicFeatureManager (flutter#22654)
Also use the diamond operator throughout this class.
1 parent dbd1abe commit 1c2a6bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

shell/platform/android/io/flutter/embedding/engine/dynamicfeatures/PlayStoreDynamicFeatureManager.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public PlayStoreDynamicFeatureManager(@NonNull Context context, @Nullable Flutte
165165
splitInstallManager = SplitInstallManagerFactory.create(context);
166166
listener = new FeatureInstallStateUpdatedListener();
167167
splitInstallManager.registerListener(listener);
168-
sessionIdToName = new SparseArray<String>();
168+
sessionIdToName = new SparseArray<>();
169169
sessionIdToLoadingUnitId = new SparseIntArray();
170170
}
171171

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

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

320-
List<String> searchPaths = new ArrayList();
320+
List<String> searchPaths = new ArrayList<>();
321321
for (String path : apkPaths) {
322322
searchPaths.add(path + "!lib/" + abi + "/" + aotSharedLibraryName);
323323
}

0 commit comments

Comments
 (0)