From 6196b1b2ebfeb69bafc63a62b98b0ac3017c4be5 Mon Sep 17 00:00:00 2001 From: pq Date: Tue, 22 Jul 2025 10:22:58 -0700 Subject: [PATCH] [CQ] migrate off deprecated `PropertiesComponent.getValues` invocations --- src/io/flutter/sdk/FlutterSdkUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/io/flutter/sdk/FlutterSdkUtil.java b/src/io/flutter/sdk/FlutterSdkUtil.java index 1c3eb8799..1801a32d2 100644 --- a/src/io/flutter/sdk/FlutterSdkUtil.java +++ b/src/io/flutter/sdk/FlutterSdkUtil.java @@ -78,9 +78,9 @@ private static void updateKnownPaths(@SuppressWarnings("SameParameterValue") @No final PropertiesComponent props = PropertiesComponent.getInstance(); // Add the existing known paths. - final String[] oldPaths = props.getValues(propertyKey); + final List oldPaths = props.getList(propertyKey); if (oldPaths != null) { - allPaths.addAll(Arrays.asList(oldPaths)); + allPaths.addAll(oldPaths); } // Store the values back. @@ -131,9 +131,9 @@ public static String[] getKnownFlutterSdkPaths() { } // use the list of paths they've entered in the past - final String[] knownPaths = PropertiesComponent.getInstance().getValues(FLUTTER_SDK_KNOWN_PATHS); + final List knownPaths = PropertiesComponent.getInstance().getList(FLUTTER_SDK_KNOWN_PATHS); if (knownPaths != null) { - paths.addAll(Arrays.asList(knownPaths)); + paths.addAll(knownPaths); } // search the user's path