Merge "Issue #1659 Cache station in StationUtils" into development

Former-commit-id: bbbdc17c06 [formerly 70f064bed284629fe521ac8d3596cb8ac798c0c7]
Former-commit-id: 66e1411de1
This commit is contained in:
Nate Jensen 2013-02-25 16:56:55 -06:00 committed by Gerrit Code Review
commit 135006ff0c

View file

@ -38,6 +38,7 @@ import com.vividsolutions.jts.geom.Coordinate;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Mar 19, 2010 #4473 rjpeter Initial creation
* Feb 25, 2013 1659 bsteffen Cache station in StationUtils
*
* </pre>
*
@ -67,7 +68,7 @@ public class StationUtils implements IPointChangedListener {
public synchronized RadarStation getHomeRadarStation() {
if (station == null) {
Coordinate home = PointsDataManager.getInstance().getHome();
return getClosestRadarStation(home.x, home.y);
station = getClosestRadarStation(home.x, home.y);
}
return station;