Skip to content

Commit

Permalink
fix: use diamond operator (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
ossdhaval authored Feb 7, 2022
1 parent 98b977e commit 57664b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private Map<Integer, Set<String>> mapJsonToAuthLevelMapping(JSONObject jsonObjec
}

private Map<String, Set<String>> mapJsonToScopeToClaimsMapping(JSONObject jsonObject) {
Map<String, Set<String>> scopeToClaimsMapping = new HashMap<String, Set<String>>();
Map<String, Set<String>> scopeToClaimsMapping = new HashMap<>();
Iterator<?> keys = jsonObject.keys();
while (keys.hasNext()) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void create() {
public static Set<HostAndPort> hosts(String servers) {
final String[] serverWithPorts = StringUtils.split(servers.trim(), ",");

Set<HostAndPort> set = new HashSet<HostAndPort>();
Set<HostAndPort> set = new HashSet<>();
for (String serverWithPort : serverWithPorts) {
final String[] split = serverWithPort.trim().split(":");
String host = split[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public enum TokenBindingSupport {

private final String status;

private static Map<String, TokenBindingSupport> KEY_MAPPINGS = new HashMap<String, TokenBindingSupport>();
private static Map<String, TokenBindingSupport> KEY_MAPPINGS = new HashMap<>();

static {
for (TokenBindingSupport enumType : values()) {
Expand Down

0 comments on commit 57664b0

Please sign in to comment.