Finally use Java7 <>
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ import appeng.util.IWorldCallable;
|
||||
public class Connections implements IWorldCallable<Void>
|
||||
{
|
||||
|
||||
private final HashMap<IGridNode, TunnelConnection> connections = new HashMap<IGridNode, TunnelConnection>();
|
||||
private final HashMap<IGridNode, TunnelConnection> connections = new HashMap<>();
|
||||
private final PartP2PTunnelME me;
|
||||
private boolean create = false;
|
||||
private boolean destroy = false;
|
||||
|
||||
@@ -53,9 +53,9 @@ public class TunnelCollection<T extends PartP2PTunnel> implements Iterable<T>
|
||||
{
|
||||
if( this.tunnelSources == null )
|
||||
{
|
||||
return new NullIterator<T>();
|
||||
return new NullIterator<>();
|
||||
}
|
||||
return new TunnelIterator<T>( this.tunnelSources, this.clz );
|
||||
return new TunnelIterator<>( this.tunnelSources, this.clz );
|
||||
}
|
||||
|
||||
public boolean matches( final Class<? extends PartP2PTunnel> c )
|
||||
|
||||
Reference in New Issue
Block a user