Merge pull request #178 from thatsIch/Redundant

Removed redundant array creations just to match varargs operations
This commit is contained in:
Chris
2014-09-29 14:06:27 -07:00
23 changed files with 45 additions and 40 deletions
@@ -122,7 +122,7 @@ public class TileCrank extends AEBaseTile implements ICustomCollision
double yOff = -0.15 * getUp().offsetY;
double zOff = -0.15 * getUp().offsetZ;
return Arrays
.asList( new AxisAlignedBB[] { AxisAlignedBB.getBoundingBox( xOff + 0.15, yOff + 0.15, zOff + 0.15, xOff + 0.85, yOff + 0.85, zOff + 0.85 ) } );
.asList( AxisAlignedBB.getBoundingBox( xOff + 0.15, yOff + 0.15, zOff + 0.15, xOff + 0.85, yOff + 0.85, zOff + 0.85 ) );
}
@Override
@@ -576,14 +576,14 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
{
try
{
return Arrays.asList( new IMEInventoryHandler[] { getHandler( channel ) } );
return Arrays.asList( getHandler( channel ) );
}
catch (ChestNoHandler e)
{
// :P
}
}
return new ArrayList();
return new ArrayList<IMEInventoryHandler>();
}
@Override