Skip to content

Commit 6196b1b

Browse files
committed
[CQ] migrate off deprecated PropertiesComponent.getValues invocations
1 parent 4bfe620 commit 6196b1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/io/flutter/sdk/FlutterSdkUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ private static void updateKnownPaths(@SuppressWarnings("SameParameterValue") @No
7878
final PropertiesComponent props = PropertiesComponent.getInstance();
7979

8080
// Add the existing known paths.
81-
final String[] oldPaths = props.getValues(propertyKey);
81+
final List<String> oldPaths = props.getList(propertyKey);
8282
if (oldPaths != null) {
83-
allPaths.addAll(Arrays.asList(oldPaths));
83+
allPaths.addAll(oldPaths);
8484
}
8585

8686
// Store the values back.
@@ -131,9 +131,9 @@ public static String[] getKnownFlutterSdkPaths() {
131131
}
132132

133133
// use the list of paths they've entered in the past
134-
final String[] knownPaths = PropertiesComponent.getInstance().getValues(FLUTTER_SDK_KNOWN_PATHS);
134+
final List<String> knownPaths = PropertiesComponent.getInstance().getList(FLUTTER_SDK_KNOWN_PATHS);
135135
if (knownPaths != null) {
136-
paths.addAll(Arrays.asList(knownPaths));
136+
paths.addAll(knownPaths);
137137
}
138138

139139
// search the user's path

0 commit comments

Comments
 (0)