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:
@@ -56,7 +56,7 @@ import appeng.util.item.AEItemStack;
|
||||
public class TileCharger extends AENetworkPowerTile implements ICrankable, IUpdatePlayerListBox
|
||||
{
|
||||
|
||||
final int[] sides = new int[] { 0 };
|
||||
final int[] sides = { 0 };
|
||||
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 1 );
|
||||
int tickTickTimer = 0;
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@ import appeng.util.Platform;
|
||||
public class TileCondenser extends AEBaseInvTile implements IFluidHandler, IConfigManagerHost, IConfigurableObject
|
||||
{
|
||||
|
||||
private static final FluidTankInfo[] EMPTY = new FluidTankInfo[] { new FluidTankInfo( null, 10 ) };
|
||||
final int[] sides = new int[] { 0, 1 };
|
||||
private static final FluidTankInfo[] EMPTY = { new FluidTankInfo( null, 10 ) };
|
||||
final int[] sides = { 0, 1 };
|
||||
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 3 );
|
||||
final ConfigManager cm = new ConfigManager( this );
|
||||
|
||||
|
||||
@@ -82,9 +82,9 @@ public class TileInscriber extends AENetworkPowerTile implements IGridTickable,
|
||||
{
|
||||
|
||||
public final int maxProcessingTime = 100;
|
||||
final int[] top = new int[] { 0 };
|
||||
final int[] bottom = new int[] { 1 };
|
||||
final int[] sides = new int[] { 2, 3 };
|
||||
final int[] top = { 0 };
|
||||
final int[] bottom = { 1 };
|
||||
final int[] sides = { 2, 3 };
|
||||
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 4 );
|
||||
private final IConfigManager settings;
|
||||
private final UpgradeInventory upgrades;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class TileVibrationChamber extends AENetworkInvTile implements IGridTicka
|
||||
{
|
||||
private static final int FUEL_SLOT_INDEX = 0;
|
||||
private static final double POWER_PER_TICK = 5;
|
||||
private static final int[] ACCESSIBLE_SLOTS = new int[] { FUEL_SLOT_INDEX };
|
||||
private static final int[] ACCESSIBLE_SLOTS = { FUEL_SLOT_INDEX };
|
||||
private static final int MAX_BURN_SPEED = 200;
|
||||
private static final double DILATION_SCALING = 100.0;
|
||||
private static final int MIN_BURN_SPEED = 20;
|
||||
|
||||
Reference in New Issue
Block a user