Resolved some unchecked Types
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ public class Connections implements Callable
|
||||
{
|
||||
|
||||
final private PartP2PTunnelME me;
|
||||
final public HashMap<IGridNode, TunnelConnection> connections = new HashMap();
|
||||
final public HashMap<IGridNode, TunnelConnection> connections = new HashMap<IGridNode, TunnelConnection>();
|
||||
|
||||
public boolean create = false;
|
||||
public boolean destroy = false;
|
||||
|
||||
@@ -21,8 +21,8 @@ public class TunnelCollection<T extends PartP2PTunnel> implements Iterable<T>
|
||||
public Iterator<T> iterator()
|
||||
{
|
||||
if ( tunnelSources == null )
|
||||
return new NullIterator();
|
||||
return new TunnelIterator( tunnelSources, clz );
|
||||
return new NullIterator<T>();
|
||||
return new TunnelIterator<T>( tunnelSources, clz );
|
||||
}
|
||||
|
||||
public void setSource(Collection<T> c)
|
||||
|
||||
Reference in New Issue
Block a user