Hopefully fix the weird compile problem in a smoother way (the generic gets erased at compile time anyway but apparently IDEA thinks it matters).
This commit is contained in:
parent
fa3aef17b6
commit
c1daf00154
1 changed files with 1 additions and 8 deletions
|
@ -264,14 +264,7 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
|||
|
||||
if(newNetworks.size() > 0)
|
||||
{
|
||||
List<N> casted = new ArrayList<N>();
|
||||
|
||||
for(ITransmitterNetwork<A, N> net : newNetworks)
|
||||
{
|
||||
casted.add((N)net);
|
||||
}
|
||||
|
||||
onNetworksCreated(casted);
|
||||
onNetworksCreated((List)newNetworks);
|
||||
|
||||
for(ITransmitterNetwork<A, N> network : newNetworks)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue