I have the following code:
public class DEF implements Set<ABC> {
private EnumSet<ABC> xyz=EnumSet.noneOf(ABC.class);
@Override
public <T> T[] toArray(T[] a) {
return xyz.toArray(a);
}
}
Which gives me the following warning:
Array of type 'ABC[]' expected at line 43
Is this dangerous? Or can I ignore it? Why is this warning?