diff --git a/src/main/java/appeng/client/render/BusRenderer.java b/src/main/java/appeng/client/render/BusRenderer.java index 88e8e590..740be69f 100644 --- a/src/main/java/appeng/client/render/BusRenderer.java +++ b/src/main/java/appeng/client/render/BusRenderer.java @@ -19,6 +19,7 @@ package appeng.client.render; import java.util.HashMap; +import java.util.Map; import org.lwjgl.opengl.GL11; @@ -48,7 +49,7 @@ public class BusRenderer implements IItemRenderer public static final BusRenderer INSTANCE = new BusRenderer(); public final RenderBlocksWorkaround renderer = new RenderBlocksWorkaround(); - public static final HashMap RENDER_PART = new HashMap(); + private static final Map RENDER_PART = new HashMap(); public IPart getRenderer(ItemStack is, IPartItem c) { diff --git a/src/main/java/appeng/debug/TileItemGen.java b/src/main/java/appeng/debug/TileItemGen.java index 94d01eb4..35d783cd 100644 --- a/src/main/java/appeng/debug/TileItemGen.java +++ b/src/main/java/appeng/debug/TileItemGen.java @@ -33,7 +33,7 @@ import appeng.tile.AEBaseTile; public class TileItemGen extends AEBaseTile implements IInventory { - public static final Queue POSSIBLE_ITEMS = new LinkedList(); + private static final Queue POSSIBLE_ITEMS = new LinkedList(); public TileItemGen() { if ( POSSIBLE_ITEMS.isEmpty() ) diff --git a/src/main/java/appeng/me/cache/NetworkMonitor.java b/src/main/java/appeng/me/cache/NetworkMonitor.java index 49961889..aef4e8c4 100644 --- a/src/main/java/appeng/me/cache/NetworkMonitor.java +++ b/src/main/java/appeng/me/cache/NetworkMonitor.java @@ -19,6 +19,7 @@ package appeng.me.cache; import java.util.Collection; +import java.util.Deque; import java.util.Iterator; import java.util.LinkedList; import java.util.Map.Entry; @@ -64,7 +65,7 @@ public class NetworkMonitor> extends MEMonitorHandler this.myChannel = chan; } - final static public LinkedList DEPTH = new LinkedList(); + private final static Deque> DEPTH = new LinkedList>(); @Override protected void postChangesToListeners(Iterable changes, BaseActionSource src) @@ -113,7 +114,7 @@ public class NetworkMonitor> extends MEMonitorHandler } } - Object last = DEPTH.pop(); + NetworkMonitor last = DEPTH.pop(); if ( last != this ) throw new RuntimeException( "Invalid Access to Networked Storage API detected." ); }