Skip to content

Commit

Permalink
Make use of Map factory method
Browse files Browse the repository at this point in the history
  • Loading branch information
purejava committed Feb 10, 2021
1 parent bd1beaa commit 95e7b15
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ public void changePassphrase(String key, CharSequence passphrase) throws Keychai
}

private Map<String, String> createAttributes(String key) {
Map<String, String> attributes = new HashMap();
attributes.put("Vault", key);
return attributes;
return Map.of("Vault", key);
}
}

0 comments on commit 95e7b15

Please sign in to comment.