Finally use Java7 <>

This commit is contained in:
yueh
2017-07-20 21:21:45 +02:00
parent 8ec8babb6a
commit 7de90ed0ae
145 changed files with 315 additions and 315 deletions
+1 -1
View File
@@ -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 )