Fix whitespace and add SuppressWarnings.

This commit is contained in:
kruland2607 2012-10-28 16:26:50 -05:00
parent bd66cc9338
commit 89ff50d60c

View File

@ -422,6 +422,7 @@ public class ComponentPreset implements Comparable<ComponentPreset>, Serializabl
oos.writeObject(DTO);
}
@SuppressWarnings("unchecked")
private void readObject( ObjectInputStream ois ) throws IOException, ClassNotFoundException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
Map<String,Object> DTO = (Map<String,Object>) ois.readObject();
@ -440,7 +441,7 @@ public class ComponentPreset implements Comparable<ComponentPreset>, Serializabl
if ( TYPE.getName().equals(keyName)) {
this.properties.put(TYPE, (ComponentPreset.Type) value);
} else {
for( TypedKey k : ORDERED_KEY_LIST ) {
for( @SuppressWarnings("rawtypes") TypedKey k : ORDERED_KEY_LIST ) {
if ( k.getName().equals(keyName)) {
this.properties.put( k, value );
break;