From f5f4feccd9bb4861a181af33453ff99c46379e76 Mon Sep 17 00:00:00 2001 From: TelepathicGrunt <40846040+TelepathicGrunt@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:29:39 -0500 Subject: [PATCH] Remove final from instanceof check in Config (#26) Eclipse reaaaally hates this `final` here and it looks weird to the rest of us. Since the MDK should work for all IDEs. we should remove that `final`. --- src/main/java/com/example/examplemod/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/examplemod/Config.java b/src/main/java/com/example/examplemod/Config.java index 334387f..38dcbcd 100644 --- a/src/main/java/com/example/examplemod/Config.java +++ b/src/main/java/com/example/examplemod/Config.java @@ -45,7 +45,7 @@ public class Config private static boolean validateItemName(final Object obj) { - return obj instanceof final String itemName && BuiltInRegistries.ITEM.containsKey(new ResourceLocation(itemName)); + return obj instanceof String itemName && BuiltInRegistries.ITEM.containsKey(new ResourceLocation(itemName)); } @SubscribeEvent