Cast hacky call to EnumSet.noneOf(), required by sensitive compilers?
This commit is contained in:
@@ -263,7 +263,7 @@ public class Transformers
|
|||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
Class<Enum> eclazz = (Class<Enum>)elementType;
|
Class<Enum> eclazz = (Class<Enum>)elementType;
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Set<E> eSet = EnumSet.noneOf(eclazz);
|
Set<E> eSet = (Set<E>)EnumSet.noneOf(eclazz);
|
||||||
set = eSet;
|
set = eSet;
|
||||||
}
|
}
|
||||||
adder = set;
|
adder = set;
|
||||||
|
|||||||
Reference in New Issue
Block a user