Skip to content

Commit

Permalink
Remove final from instanceof check in Config (#26)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
TelepathicGrunt authored Dec 9, 2023
1 parent 6bc4a12 commit f5f4fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/example/examplemod/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5f4fec

Please sign in to comment.