Finally use Java7 <>
This commit is contained in:
@@ -87,12 +87,12 @@ public abstract class AEBaseContainer extends Container
|
||||
|
||||
private final InventoryPlayer invPlayer;
|
||||
private final BaseActionSource mySrc;
|
||||
private final HashSet<Integer> locked = new HashSet<Integer>();
|
||||
private final HashSet<Integer> locked = new HashSet<>();
|
||||
private final TileEntity tileEntity;
|
||||
private final IPart part;
|
||||
private final IGuiItemObject obj;
|
||||
private final List<PacketPartialItem> dataChunks = new LinkedList<PacketPartialItem>();
|
||||
private final HashMap<Integer, SyncData> syncData = new HashMap<Integer, SyncData>();
|
||||
private final List<PacketPartialItem> dataChunks = new LinkedList<>();
|
||||
private final HashMap<Integer, SyncData> syncData = new HashMap<>();
|
||||
private boolean isContainerValid = true;
|
||||
private String customName;
|
||||
private ContainerOpenContext openContext;
|
||||
@@ -245,7 +245,7 @@ public abstract class AEBaseContainer extends Container
|
||||
CompressedStreamTools.writeCompressed( item, stream );
|
||||
|
||||
final int maxChunkSize = 30000;
|
||||
final List<byte[]> miniPackets = new LinkedList<byte[]>();
|
||||
final List<byte[]> miniPackets = new LinkedList<>();
|
||||
|
||||
final byte[] data = stream.toByteArray();
|
||||
|
||||
@@ -488,7 +488,7 @@ public abstract class AEBaseContainer extends Container
|
||||
return ItemStack.EMPTY;
|
||||
}
|
||||
|
||||
final List<Slot> selectedSlots = new ArrayList<Slot>();
|
||||
final List<Slot> selectedSlots = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Gather a list of valid destinations.
|
||||
@@ -825,7 +825,7 @@ public abstract class AEBaseContainer extends Container
|
||||
|
||||
if( action == InventoryAction.MOVE_REGION )
|
||||
{
|
||||
final List<Slot> from = new LinkedList<Slot>();
|
||||
final List<Slot> from = new LinkedList<>();
|
||||
|
||||
for( final Object j : this.inventorySlots )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user