used List.of() for FALLBACK_LOCATIONS

This commit is contained in:
Jan-Peter Klein
2024-10-16 18:00:47 +02:00
parent 4b359d98cb
commit f642149723

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"), //