From 01b02b74864da870caefb903b901b6a654b625ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 17 Dec 2025 18:07:19 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=8E=A8=20Remove=20some=20unnecessary=20typ?= =?utf8?q?e=20parameters?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/fcp/plugin/WebOfTrustPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]); } -- 2.7.4