quick fix : Explicit type can be replaced with <>

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 7abe2f5182
commit 60f7add07f
55 files changed
+132 -132

No files matched your search

@@ -93,7 +93,7 @@ public abstract class HarvestTool extends ToolCore {
@Override
public Set<String> getToolClasses(ItemStack stack) {
Set<String> set = new HashSet<String>();
Set<String> set = new HashSet<>();
if (stack != null && stack.getItem() instanceof HarvestTool) {
set.add(((HarvestTool) stack.getItem()).getHarvestType());
@@ -110,20 +110,20 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IEq
/* Rendering */
public HashMap<Integer, IIcon> headIcons = new HashMap<Integer, IIcon>();
public HashMap<Integer, IIcon> brokenIcons = new HashMap<Integer, IIcon>();
public HashMap<Integer, IIcon> handleIcons = new HashMap<Integer, IIcon>();
public HashMap<Integer, IIcon> accessoryIcons = new HashMap<Integer, IIcon>();
public HashMap<Integer, IIcon> effectIcons = new HashMap<Integer, IIcon>();
public HashMap<Integer, IIcon> extraIcons = new HashMap<Integer, IIcon>();
public HashMap<Integer, IIcon> headIcons = new HashMap<>();
public HashMap<Integer, IIcon> brokenIcons = new HashMap<>();
public HashMap<Integer, IIcon> handleIcons = new HashMap<>();
public HashMap<Integer, IIcon> accessoryIcons = new HashMap<>();
public HashMap<Integer, IIcon> effectIcons = new HashMap<>();
public HashMap<Integer, IIcon> extraIcons = new HashMap<>();
// Not liking this
public HashMap<Integer, String> headStrings = new HashMap<Integer, String>();
public HashMap<Integer, String> brokenPartStrings = new HashMap<Integer, String>();
public HashMap<Integer, String> handleStrings = new HashMap<Integer, String>();
public HashMap<Integer, String> accessoryStrings = new HashMap<Integer, String>();
public HashMap<Integer, String> effectStrings = new HashMap<Integer, String>();
public HashMap<Integer, String> extraStrings = new HashMap<Integer, String>();
public HashMap<Integer, String> headStrings = new HashMap<>();
public HashMap<Integer, String> brokenPartStrings = new HashMap<>();
public HashMap<Integer, String> handleStrings = new HashMap<>();
public HashMap<Integer, String> accessoryStrings = new HashMap<>();
public HashMap<Integer, String> effectStrings = new HashMap<>();
public HashMap<Integer, String> extraStrings = new HashMap<>();
@SideOnly(Side.CLIENT)
@Override