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

Commit ee6a9c4

Browse files
Fix unchecked operation warnings in FlutterMain (#9073)
Also remove trailing whitespace on some lines
1 parent 333042c commit ee6a9c4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

shell/platform/android/io/flutter/view/FlutterMain.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ private static void initConfig(@NonNull Context applicationContext) {
312312
}
313313

314314
/**
315-
* Extract the AOT blobs from the app's asset directory.
315+
* Extract the AOT blobs from the app's asset directory.
316316
* This is required by the Dart runtime, so it can read the blobs.
317317
*/
318318
private static void initResources(@NonNull Context applicationContext) {
319-
// When the AOT blobs are contained in the native library directory,
320-
// we don't need to extract them manually because they are
319+
// When the AOT blobs are contained in the native library directory,
320+
// we don't need to extract them manually because they are
321321
// extracted by the Android Package Manager automatically.
322322
if (!sSnapshotPath.equals(PathUtils.getDataDirectory(applicationContext))) {
323323
return;
@@ -369,26 +369,26 @@ private static Set<String> listAssets(@NonNull Context applicationContext, @NonN
369369
}
370370

371371
/**
372-
* Returns a list of the file names at the root of the application's
372+
* Returns a list of the file names at the root of the application's
373373
* native library directory.
374374
*/
375375
@NonNull
376376
private static Set<String> listLibs(@NonNull Context applicationContext) {
377377
ApplicationInfo applicationInfo = getApplicationInfo(applicationContext);
378378
File[] files = new File(applicationInfo.nativeLibraryDir).listFiles();
379-
380-
ImmutableSetBuilder builder = ImmutableSetBuilder.<String>newInstance();
379+
380+
ImmutableSetBuilder<String> builder = ImmutableSetBuilder.newInstance();
381381
for (File file : files) {
382382
builder.add(file.getName());
383383
}
384384
return builder.build();
385385
}
386386

387387
/**
388-
* Determines if the APK contains a shared library or AOT snapshots,
388+
* Determines if the APK contains a shared library or AOT snapshots,
389389
* the file name of the snapshots and the directory where they are contained.
390390
*
391-
* <p>The snapshots can be contained in the app's assets or in the native library
391+
* <p>The snapshots can be contained in the app's assets or in the native library
392392
* directory. The default names are:
393393
*
394394
* <ul>
@@ -402,7 +402,7 @@ private static Set<String> listLibs(@NonNull Context applicationContext) {
402402
* <p>When the blobs are contained in the native library directory,
403403
* the format <b>`lib_%s.so`</b> is applied to the file name.
404404
*
405-
* <p>Note: The name of the files can be customized in the app's metadata, but the
405+
* <p>Note: The name of the files can be customized in the app's metadata, but the
406406
* format is preserved.
407407
*
408408
* <p>The AOT snapshots and the shared library cannot exist at the same time in the APK.

0 commit comments

Comments
 (0)