Fix whitespace and add SuppressWarnings.
This commit is contained in:
parent
bd66cc9338
commit
89ff50d60c
@ -54,87 +54,87 @@ public class ComponentPreset implements Comparable<ComponentPreset>, Serializabl
|
|||||||
ComponentPreset.OUTER_DIAMETER,
|
ComponentPreset.OUTER_DIAMETER,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
NOSE_CONE(new TypedKey<?>[] {
|
NOSE_CONE(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.SHAPE,
|
ComponentPreset.SHAPE,
|
||||||
ComponentPreset.AFT_OUTER_DIAMETER,
|
ComponentPreset.AFT_OUTER_DIAMETER,
|
||||||
ComponentPreset.AFT_SHOULDER_DIAMETER,
|
ComponentPreset.AFT_SHOULDER_DIAMETER,
|
||||||
ComponentPreset.AFT_SHOULDER_LENGTH,
|
ComponentPreset.AFT_SHOULDER_LENGTH,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
TRANSITION(new TypedKey<?>[] {
|
TRANSITION(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.SHAPE,
|
ComponentPreset.SHAPE,
|
||||||
ComponentPreset.FORE_OUTER_DIAMETER,
|
ComponentPreset.FORE_OUTER_DIAMETER,
|
||||||
ComponentPreset.FORE_SHOULDER_DIAMETER,
|
ComponentPreset.FORE_SHOULDER_DIAMETER,
|
||||||
ComponentPreset.FORE_SHOULDER_LENGTH,
|
ComponentPreset.FORE_SHOULDER_LENGTH,
|
||||||
ComponentPreset.AFT_OUTER_DIAMETER,
|
ComponentPreset.AFT_OUTER_DIAMETER,
|
||||||
ComponentPreset.AFT_SHOULDER_DIAMETER,
|
ComponentPreset.AFT_SHOULDER_DIAMETER,
|
||||||
ComponentPreset.AFT_SHOULDER_LENGTH,
|
ComponentPreset.AFT_SHOULDER_LENGTH,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
TUBE_COUPLER(new TypedKey<?>[] {
|
TUBE_COUPLER(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.OUTER_DIAMETER,
|
ComponentPreset.OUTER_DIAMETER,
|
||||||
ComponentPreset.INNER_DIAMETER,
|
ComponentPreset.INNER_DIAMETER,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
BULK_HEAD(new TypedKey<?>[] {
|
BULK_HEAD(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.OUTER_DIAMETER,
|
ComponentPreset.OUTER_DIAMETER,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
CENTERING_RING(new TypedKey<?>[] {
|
CENTERING_RING(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.INNER_DIAMETER,
|
ComponentPreset.INNER_DIAMETER,
|
||||||
ComponentPreset.OUTER_DIAMETER,
|
ComponentPreset.OUTER_DIAMETER,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
ENGINE_BLOCK(new TypedKey<?>[] {
|
ENGINE_BLOCK(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.INNER_DIAMETER,
|
ComponentPreset.INNER_DIAMETER,
|
||||||
ComponentPreset.OUTER_DIAMETER,
|
ComponentPreset.OUTER_DIAMETER,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
LAUNCH_LUG(new TypedKey<?>[] {
|
LAUNCH_LUG(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.INNER_DIAMETER,
|
ComponentPreset.INNER_DIAMETER,
|
||||||
ComponentPreset.OUTER_DIAMETER,
|
ComponentPreset.OUTER_DIAMETER,
|
||||||
ComponentPreset.LENGTH }),
|
ComponentPreset.LENGTH }),
|
||||||
|
|
||||||
STREAMER(new TypedKey<?>[] {
|
STREAMER(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.LENGTH,
|
ComponentPreset.LENGTH,
|
||||||
ComponentPreset.WIDTH,
|
ComponentPreset.WIDTH,
|
||||||
ComponentPreset.THICKNESS,
|
ComponentPreset.THICKNESS,
|
||||||
ComponentPreset.MATERIAL }),
|
ComponentPreset.MATERIAL }),
|
||||||
|
|
||||||
PARACHUTE(new TypedKey<?>[] {
|
PARACHUTE(new TypedKey<?>[] {
|
||||||
ComponentPreset.MANUFACTURER,
|
ComponentPreset.MANUFACTURER,
|
||||||
ComponentPreset.PARTNO,
|
ComponentPreset.PARTNO,
|
||||||
ComponentPreset.DESCRIPTION,
|
ComponentPreset.DESCRIPTION,
|
||||||
ComponentPreset.DIAMETER,
|
ComponentPreset.DIAMETER,
|
||||||
ComponentPreset.SIDES,
|
ComponentPreset.SIDES,
|
||||||
ComponentPreset.LINE_COUNT,
|
ComponentPreset.LINE_COUNT,
|
||||||
ComponentPreset.LINE_LENGTH,
|
ComponentPreset.LINE_LENGTH,
|
||||||
ComponentPreset.LINE_MATERIAL,
|
ComponentPreset.LINE_MATERIAL,
|
||||||
ComponentPreset.MATERIAL });
|
ComponentPreset.MATERIAL });
|
||||||
|
|
||||||
TypedKey<?>[] displayedColumns;
|
TypedKey<?>[] displayedColumns;
|
||||||
|
|
||||||
@ -386,7 +386,7 @@ public class ComponentPreset implements Comparable<ComponentPreset>, Serializabl
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static class MaterialSerializationProxy implements Serializable {
|
private static class MaterialSerializationProxy implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -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