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."); "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 ();
/** /**