From f6421497236d0ba8f6992e3732d84be8e5ad7bd6 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Wed, 16 Oct 2024 18:00:47 +0200 Subject: [PATCH] used List.of() for FALLBACK_LOCATIONS --- .../locationpresets/GoogleDriveMacLocationPresetsProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java b/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java index 7dd92279f..9cb428d1b 100644 --- a/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java +++ b/src/main/java/org/cryptomator/common/locationpresets/GoogleDriveMacLocationPresetsProvider.java @@ -25,7 +25,7 @@ public final class GoogleDriveMacLocationPresetsProvider implements LocationPres private static final Path ROOT_LOCATION = LocationPresetsProvider.resolveLocation("~/Library/CloudStorage/").toAbsolutePath(); private static final Predicate PATTERN = Pattern.compile("^GoogleDrive-[^/]+$").asMatchPredicate(); - private static final List FALLBACK_LOCATIONS = Arrays.asList( // + private static final List FALLBACK_LOCATIONS = List.of( // LocationPresetsProvider.resolveLocation("~/GoogleDrive/My Drive"), // LocationPresetsProvider.resolveLocation("~/Google Drive/My Drive"), // LocationPresetsProvider.resolveLocation("~/GoogleDrive"), //