name.setText(sf.getType());
description.setText(sf.getDescription());
group.setText(sf.getFeatureGroup());
- start.setValue(new Integer(sf.getBegin()));
- end.setValue(new Integer(sf.getEnd()));
+ start.setValue(Integer.valueOf(sf.getBegin()));
+ end.setValue(Integer.valueOf(sf.getEnd()));
((SpinnerNumberModel) start.getModel()).setMaximum(sf.getEnd());
((SpinnerNumberModel) end.getModel()).setMinimum(sf.getBegin());
name.setText(featureType);
group.setText(featureGroup);
- start.setValue(new Integer(firstFeature.getBegin()));
- end.setValue(new Integer(firstFeature.getEnd()));
+ start.setValue(Integer.valueOf(firstFeature.getBegin()));
+ end.setValue(Integer.valueOf(firstFeature.getEnd()));
((SpinnerNumberModel) start.getModel())
.setMaximum(firstFeature.getEnd());
((SpinnerNumberModel) end.getModel())
resNumber = Integer.parseInt(str.substring(22, 26).trim());
resNumIns = str.substring(22, 27).trim();
insCode = str.substring(26, 27).charAt(0);
- this.x = (new Float(str.substring(30, 38).trim()).floatValue());
- this.y = (new Float(str.substring(38, 46).trim()).floatValue());
- this.z = (new Float(str.substring(47, 55).trim()).floatValue());
+ this.x = (Float.valueOf(str.substring(30, 38).trim()).floatValue());
+ this.y = (Float.valueOf(str.substring(38, 46).trim()).floatValue());
+ this.z = (Float.valueOf(str.substring(47, 55).trim()).floatValue());
// optional entries - see JAL-730
String tm = str.substring(54, 60).trim();
if (tm.length() > 0)
{
- occupancy = (new Float(tm)).floatValue();
+ occupancy = (Float.valueOf(tm)).floatValue();
}
else
{
tm = str.substring(60, 66).trim();
if (tm.length() > 0)
{
- tfactor = (new Float(tm).floatValue());
+ tfactor = (Float.valueOf(tm).floatValue());
}
else
{
{
case Yytoken.TYPE_VALUE:
status = S_IN_FINISHED_VALUE;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
valueStack.addFirst(token.value);
break;
case Yytoken.TYPE_LEFT_BRACE:
status = S_IN_OBJECT;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
valueStack.addFirst(createObjectContainer(containerFactory));
break;
case Yytoken.TYPE_LEFT_SQUARE:
status = S_IN_ARRAY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
valueStack.addFirst(createArrayContainer(containerFactory));
break;
default:
String key = (String) token.value;
valueStack.addFirst(key);
status = S_PASSED_PAIR_KEY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
}
else
{
List newArray = createArrayContainer(containerFactory);
parent.put(key, newArray);
status = S_IN_ARRAY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
valueStack.addFirst(newArray);
break;
case Yytoken.TYPE_LEFT_BRACE:
Map newObject = createObjectContainer(containerFactory);
parent.put(key, newObject);
status = S_IN_OBJECT;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
valueStack.addFirst(newObject);
break;
default:
Map newObject = createObjectContainer(containerFactory);
val.add(newObject);
status = S_IN_OBJECT;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
valueStack.addFirst(newObject);
break;
case Yytoken.TYPE_LEFT_SQUARE:
List newArray = createArrayContainer(containerFactory);
val.add(newArray);
status = S_IN_ARRAY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
valueStack.addFirst(newArray);
break;
default:
{
case Yytoken.TYPE_VALUE:
status = S_IN_FINISHED_VALUE;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.primitive(token.value))
return;
break;
case Yytoken.TYPE_LEFT_BRACE:
status = S_IN_OBJECT;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.startObject())
return;
break;
case Yytoken.TYPE_LEFT_SQUARE:
status = S_IN_ARRAY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.startArray())
return;
break;
{
String key = (String) token.value;
status = S_PASSED_PAIR_KEY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.startObjectEntry(key))
return;
}
break;
case Yytoken.TYPE_LEFT_SQUARE:
statusStack.removeFirst();
- statusStack.addFirst(new Integer(S_IN_PAIR_VALUE));
+ statusStack.addFirst(Integer.valueOf(S_IN_PAIR_VALUE));
status = S_IN_ARRAY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.startArray())
return;
break;
case Yytoken.TYPE_LEFT_BRACE:
statusStack.removeFirst();
- statusStack.addFirst(new Integer(S_IN_PAIR_VALUE));
+ statusStack.addFirst(Integer.valueOf(S_IN_PAIR_VALUE));
status = S_IN_OBJECT;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.startObject())
return;
break;
break;
case Yytoken.TYPE_LEFT_BRACE:
status = S_IN_OBJECT;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.startObject())
return;
break;
case Yytoken.TYPE_LEFT_SQUARE:
status = S_IN_ARRAY;
- statusStack.addFirst(new Integer(status));
+ statusStack.addFirst(Integer.valueOf(status));
if (!contentHandler.startArray())
return;
break;