Finally use Java7 <>
This commit is contained in:
@@ -36,7 +36,7 @@ import appeng.tile.AEBaseTile;
|
||||
public class TileItemGen extends AEBaseTile implements IInventory
|
||||
{
|
||||
|
||||
private static final Queue<ItemStack> POSSIBLE_ITEMS = new LinkedList<ItemStack>();
|
||||
private static final Queue<ItemStack> POSSIBLE_ITEMS = new LinkedList<>();
|
||||
|
||||
public TileItemGen()
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ToolDebugCard extends AEBaseItem
|
||||
if( pg.getControllerState() == ControllerState.CONTROLLER_ONLINE )
|
||||
{
|
||||
|
||||
Set<IGridNode> next = new HashSet<IGridNode>();
|
||||
Set<IGridNode> next = new HashSet<>();
|
||||
next.add( node );
|
||||
|
||||
final int maxLength = 10000;
|
||||
@@ -105,7 +105,7 @@ public class ToolDebugCard extends AEBaseItem
|
||||
while( !next.isEmpty() )
|
||||
{
|
||||
final Iterable<IGridNode> current = next;
|
||||
next = new HashSet<IGridNode>();
|
||||
next = new HashSet<>();
|
||||
|
||||
for( final IGridNode n : current )
|
||||
{
|
||||
|
||||
@@ -50,14 +50,14 @@ public class ToolEraser extends AEBaseItem
|
||||
|
||||
final IBlockState state = world.getBlockState( pos );
|
||||
|
||||
List<BlockPos> next = new LinkedList<BlockPos>();
|
||||
List<BlockPos> next = new LinkedList<>();
|
||||
next.add( pos );
|
||||
|
||||
int blocks = 0;
|
||||
while( blocks < BLOCK_ERASE_LIMIT && !next.isEmpty() )
|
||||
{
|
||||
final List<BlockPos> c = next;
|
||||
next = new LinkedList<BlockPos>();
|
||||
next = new LinkedList<>();
|
||||
|
||||
for( final BlockPos wc : c )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user