Fix whitespace and add SuppressWarnings.
This commit is contained in:
parent
bd66cc9338
commit
89ff50d60c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user