Warning cleanup
This commit is contained in:
@@ -206,10 +206,10 @@ public class Transformers
|
||||
"Cannot proceed: EnumSet field is to be populated with a null element.");
|
||||
set = Sets.newHashSet();
|
||||
} else {
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
Class<Enum> eclazz = (Class<Enum>)elementType;
|
||||
@SuppressWarnings("unchecked")
|
||||
Set<E> eSet = (Set<E>)EnumSet.noneOf(eclazz);
|
||||
Set<E> eSet = EnumSet.noneOf(eclazz);
|
||||
set = eSet;
|
||||
}
|
||||
adder = set;
|
||||
|
||||
@@ -50,6 +50,7 @@ public @interface Transform
|
||||
/**
|
||||
* Specifies a transformer to be used when persisting the target of this annotation.
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
Class<? extends Transformer> value ();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user