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