From: David ‘Bombe’ Roden Date: Wed, 17 Dec 2025 17:07:19 +0000 (+0100) Subject: 🎨 Remove some unnecessary type parameters X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=01b02b74864da870caefb903b901b6a654b625ee;p=jFCPlib.git 🎨 Remove some unnecessary type parameters --- diff --git a/src/main/java/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java b/src/main/java/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java index 28cd9eb..23cc507 100644 --- a/src/main/java/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java +++ b/src/main/java/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java @@ -244,7 +244,7 @@ public class WebOfTrustPlugin { if (!replies.get("Message").equals("Identities")) { throw new FcpException("WebOfTrust Plugin did not reply with “Identities” message!"); } - Map identityTrusts = new HashMap(); + Map identityTrusts = new HashMap<>(); for (int identityIndex = 1; replies.containsKey("Identity" + identityIndex); identityIndex++) { String identifier = replies.get("Identity" + identityIndex); String nickname = replies.get("Nickname" + identityIndex); @@ -274,7 +274,7 @@ public class WebOfTrustPlugin { if (!replies.get("Message").equals("Identities")) { throw new FcpException("WebOfTrust Plugin did not reply with “Identities” message!"); } - Map identityTrusts = new HashMap(); + Map identityTrusts = new HashMap<>(); for (int identityIndex = 1; replies.containsKey("Identity" + identityIndex); identityIndex++) { String identifier = replies.get("Identity" + identityIndex); String nickname = replies.get("Nickname" + identityIndex); @@ -423,7 +423,7 @@ public class WebOfTrustPlugin { * of elements */ private Map createParameters(String... parameters) throws ArrayIndexOutOfBoundsException { - Map parameterMap = new HashMap(); + Map parameterMap = new HashMap<>(); for (int index = 0; index < parameters.length; index += 2) { parameterMap.put(parameters[index], parameters[index + 1]); }