Warning cleanup

This commit is contained in:
Charlie Groves
2011-06-24 19:47:18 +00:00
parent 7ba475e61c
commit cef1461109
2 changed files with 3 additions and 2 deletions
@@ -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 ();
/**