Replace with array initializer

this can be done through http://docs.oracle.com/javase/specs/jls/se6/html/arrays.html#10.6
This commit is contained in:
thatsIch
2015-09-25 23:04:36 +02:00
parent 9d35f65e76
commit 430b33b7a3
26 changed files with 47 additions and 47 deletions
@@ -31,7 +31,7 @@ public class InvLayerData
{
// a simple empty array for empty stuff..
private static final int[] NULL_SIDES = new int[] {};
private static final int[] NULL_SIDES = {};
// cache of inventory state.
private final int[][] sides;
@@ -49,7 +49,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
{
// a simple empty array for empty stuff..
private static final int[] NULL_SIDES = new int[] {};
private static final int[] NULL_SIDES = {};
InvLayerData invLayer = null;
@@ -70,7 +70,7 @@ import appeng.util.Platform;
public class PartCable extends AEBasePart implements IPartCable
{
final int[] channelsOnSide = new int[] { 0, 0, 0, 0, 0, 0 };
final int[] channelsOnSide = { 0, 0, 0, 0, 0, 0 };
EnumSet<AEPartLocation> connections = EnumSet.noneOf( AEPartLocation.class );
boolean powered = false;
@@ -38,8 +38,8 @@ public class PartP2PLiquids extends PartP2PTunnel<PartP2PLiquids> implements IFl
{
static final ThreadLocal<Stack<PartP2PLiquids>> DEPTH = new ThreadLocal<Stack<PartP2PLiquids>>();
private static final FluidTankInfo[] ACTIVE_TANK = new FluidTankInfo[] { new FluidTankInfo( null, 10000 ) };
private static final FluidTankInfo[] INACTIVE_TANK = new FluidTankInfo[] { new FluidTankInfo( null, 0 ) };
private static final FluidTankInfo[] ACTIVE_TANK = { new FluidTankInfo( null, 10000 ) };
private static final FluidTankInfo[] INACTIVE_TANK = { new FluidTankInfo( null, 0 ) };
IFluidHandler cachedTank;
private int tmpUsed;