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);
|
oos.writeObject(DTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
private void readObject( ObjectInputStream ois ) throws IOException, ClassNotFoundException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
|
private void readObject( ObjectInputStream ois ) throws IOException, ClassNotFoundException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
|
||||||
Map<String,Object> DTO = (Map<String,Object>) ois.readObject();
|
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)) {
|
if ( TYPE.getName().equals(keyName)) {
|
||||||
this.properties.put(TYPE, (ComponentPreset.Type) value);
|
this.properties.put(TYPE, (ComponentPreset.Type) value);
|
||||||
} else {
|
} else {
|
||||||
for( TypedKey k : ORDERED_KEY_LIST ) {
|
for( @SuppressWarnings("rawtypes") TypedKey k : ORDERED_KEY_LIST ) {
|
||||||
if ( k.getName().equals(keyName)) {
|
if ( k.getName().equals(keyName)) {
|
||||||
this.properties.put( k, value );
|
this.properties.put( k, value );
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user