Issue #2724: Fix Airep/Pirep Autoboxing NPE

Change-Id: Ieb2823dc220daf4d77a071ba8baaf3831957bd38

Former-commit-id: c6206fd6a8 [formerly cbdaaf4d6e28d7001df205ffb7d8d2d56bacd35f]
Former-commit-id: 57f6096833
This commit is contained in:
Richard Peter 2014-01-21 11:18:06 -06:00
parent eb581f0181
commit d372cf80f9
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 * Aug 30, 2013 2298 rjpeter Make getPluginName abstract
* Sep 05, 2013 2316 bsteffen Unify airep and ncairep. * Sep 05, 2013 2316 bsteffen Unify airep and ncairep.
* Dec 03, 2013 2551 rjpeter Extend PersistablePluginDataObject * 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> * </pre>
* *
* @author jkorman * @author jkorman
@ -454,7 +457,7 @@ public class AirepRecord extends PersistablePluginDataObject implements
/** /**
* @return the temp * @return the temp
*/ */
public float getTemp() { public Float getTemp() {
return temp; return temp;
} }
@ -462,14 +465,14 @@ public class AirepRecord extends PersistablePluginDataObject implements
* @param temp * @param temp
* the temp to set * the temp to set
*/ */
public void setTemp(float temp) { public void setTemp(Float temp) {
this.temp = temp; this.temp = temp;
} }
/** /**
* @return the windDirection * @return the windDirection
*/ */
public float getWindDirection() { public Float getWindDirection() {
return windDirection; return windDirection;
} }
@ -477,14 +480,14 @@ public class AirepRecord extends PersistablePluginDataObject implements
* @param windDirection * @param windDirection
* the windDirection to set * the windDirection to set
*/ */
public void setWindDirection(float windDirection) { public void setWindDirection(Float windDirection) {
this.windDirection = windDirection; this.windDirection = windDirection;
} }
/** /**
* @return the windspeed * @return the windspeed
*/ */
public float getWindSpeed() { public Float getWindSpeed() {
return windSpeed; return windSpeed;
} }
@ -492,7 +495,7 @@ public class AirepRecord extends PersistablePluginDataObject implements
* @param windspeed * @param windspeed
* the windspeed to set * the windspeed to set
*/ */
public void setWindSpeed(float windSpeed) { public void setWindSpeed(Float windSpeed) {
this.windSpeed = windSpeed; this.windSpeed = windSpeed;
} }

View file

@ -73,6 +73,9 @@ import com.vividsolutions.jts.geom.Geometry;
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract * Aug 30, 2013 2298 rjpeter Make getPluginName abstract
* Sep 05, 2013 2316 bsteffen Unify pirep and ncpirep. * Sep 05, 2013 2316 bsteffen Unify pirep and ncpirep.
* Dec 03, 2013 2551 rjpeter Extend PersistablePluginDataObject. * 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> * </pre>
* *
* @author jkorman * @author jkorman
@ -433,7 +436,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* @return the temp * @return the temp
*/ */
// public Double getTemp() { // public Double getTemp() {
public float getTemp() { public Float getTemp() {
return temp; return temp;
} }
@ -442,7 +445,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* the temp to set * the temp to set
*/ */
// public void setTemp(Double temp) { // public void setTemp(Double temp) {
public void setTemp(float temp) { public void setTemp(Float temp) {
this.temp = temp; this.temp = temp;
} }
@ -450,7 +453,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* @return the windDirection * @return the windDirection
*/ */
// public Integer getWindDirection() { // public Integer getWindDirection() {
public float getWindDirection() { public Float getWindDirection() {
return windDirection; return windDirection;
} }
@ -459,7 +462,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* the windDirection to set * the windDirection to set
*/ */
// public void setWindDirection(Integer windDirection) { // public void setWindDirection(Integer windDirection) {
public void setWindDirection(float windDirection) { public void setWindDirection(Float windDirection) {
this.windDirection = windDirection; this.windDirection = windDirection;
} }
@ -467,7 +470,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* @return the windspeed * @return the windspeed
*/ */
// public Double getWindSpeed() { // public Double getWindSpeed() {
public float getWindSpeed() { public Float getWindSpeed() {
return windSpeed; return windSpeed;
} }
@ -476,7 +479,7 @@ public class PirepRecord extends PersistablePluginDataObject implements
* the windspeed to set * the windspeed to set
*/ */
// public void setWindSpeed(Double windSpeed) { // public void setWindSpeed(Double windSpeed) {
public void setWindSpeed(float windSpeed) { public void setWindSpeed(Float windSpeed) {
this.windSpeed = windSpeed; this.windSpeed = windSpeed;
} }