used List.of() for FALLBACK_LOCATIONS
Some checks failed
Build / Compile and Test (push) Has been cancelled

This commit is contained in:
Jan-Peter Klein 2024-10-16 18:00:47 +02:00
parent 4b359d98cb
commit f642149723
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -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<String> PATTERN = Pattern.compile("^GoogleDrive-[^/]+$").asMatchPredicate();
private static final List<Path> FALLBACK_LOCATIONS = Arrays.asList( //
private static final List<Path> FALLBACK_LOCATIONS = List.of( //
LocationPresetsProvider.resolveLocation("~/GoogleDrive/My Drive"), //
LocationPresetsProvider.resolveLocation("~/Google Drive/My Drive"), //
LocationPresetsProvider.resolveLocation("~/GoogleDrive"), //