Skip to content

Commit 95e7b15

Browse files
committed
Make use of Map factory method
Fixes #7
1 parent bd1beaa commit 95e7b15

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/cryptomator/linux/keychain/SecretServiceKeychainAccess.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ public void changePassphrase(String key, CharSequence passphrase) throws Keychai
7676
}
7777

7878
private Map<String, String> createAttributes(String key) {
79-
Map<String, String> attributes = new HashMap();
80-
attributes.put("Vault", key);
81-
return attributes;
79+
return Map.of("Vault", key);
8280
}
8381
}

0 commit comments

Comments
 (0)