Skip to content

Commit 52d58e5

Browse files
Merge pull request #8 from purejava/fix/7-code-improvement
Make use of Map factory method
2 parents bd1beaa + 95e7b15 commit 52d58e5

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)