Issue #2724: Fix Airep/Pirep Autoboxing NPE

Change-Id: Ieb2823dc220daf4d77a071ba8baaf3831957bd38

Former-commit-id: cbdaaf4d6e28d7001df205ffb7d8d2d56bacd35f
This commit is contained in:
Richard Peter 2014-01-21 11:18:06 -06:00
parent ace3c4c823
commit c6206fd6a8
2 changed files with 18 additions and 12 deletions

View file

@ -75,6 +75,9 @@ import com.vividsolutions.jts.geom.Geometry;
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
* Sep 05, 2013 2316 bsteffen Unify airep and ncairep.
* Dec 03, 2013 2551 rjpeter Extend PersistablePluginDataObject
* Jan 21, 2013 2724 rjpeter Update getter/setter to use same Object as
* internal variable to prevent auto unboxing
* NPE on serialization.
* </pre>
*
* @author jkorman
@ -454,7 +457,7 @@ public class AirepRecord extends PersistablePluginDataObject implements
/**
* @return the temp
*/
public float getTemp() {
public Float getTemp() {
return temp;
}
@ -462,14 +465,14 @@ public class AirepRecord extends PersistablePluginDataObject implements
* @param temp
* the temp to set
*/
public void setTemp(float temp) {
public void setTemp(Float temp) {
this.temp = temp;
}
/**
* @return the windDirection
*/
public float getWindDirection() {
public Float getWindDirection() {
return windDirection;
}
@ -477,14 +480,14 @@ public class AirepRecord extends PersistablePluginDataObject implements
* @param windDirection
* the windDirection to set
*/
public void setWindDirection(float windDirection) {
public void setWindDirection(Float windDirection) {
this.windDirection = windDirection;
}
/**
* @return the windspeed
*/
public float getWindSpeed() {
public Float getWindSpeed() {
return windSpeed;
}
@ -492,7 +495,7 @@ public class AirepRecord extends PersistablePluginDataObject implements
* @param windspeed
* the windspeed to set
*/
public void setWindSpeed(float windSpeed) {
public void setWindSpeed(Float windSpeed) {
this.windSpeed = windSpeed;
}

View file

@ -73,6 +73,9 @@ import com.vividsolutions.jts.geom.Geometry;
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
* Sep 05, 2013 2316 bsteffen Unify pirep and ncpirep.
* Dec 03, 2013 2551 rjpeter Extend PersistablePluginDataObject.
* Jan 21, 2013 2724 rjpeter Update getter/setter to use same Object as
* internal variable to prevent auto unboxing
* NPE on serialization.
* </pre>
*
* @author jkorman
@ -433,7 +436,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* @return the temp
*/
// public Double getTemp() {
public float getTemp() {
public Float getTemp() {
return temp;
}
@ -442,7 +445,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* the temp to set
*/
// public void setTemp(Double temp) {
public void setTemp(float temp) {
public void setTemp(Float temp) {
this.temp = temp;
}
@ -450,7 +453,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* @return the windDirection
*/
// public Integer getWindDirection() {
public float getWindDirection() {
public Float getWindDirection() {
return windDirection;
}
@ -459,7 +462,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* the windDirection to set
*/
// public void setWindDirection(Integer windDirection) {
public void setWindDirection(float windDirection) {
public void setWindDirection(Float windDirection) {
this.windDirection = windDirection;
}
@ -467,7 +470,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* @return the windspeed
*/
// public Double getWindSpeed() {
public float getWindSpeed() {
public Float getWindSpeed() {
return windSpeed;
}
@ -476,7 +479,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* the windspeed to set
*/
// public void setWindSpeed(Double windSpeed) {
public void setWindSpeed(float windSpeed) {
public void setWindSpeed(Float windSpeed) {
this.windSpeed = windSpeed;
}