Issue #1659 Cache station in StationUtils

Former-commit-id: 98ec05e12c [formerly 0ff907499c] [formerly 842437870e] [formerly 39bf907df7 [formerly 842437870e [formerly 5bd8303893ad59a23571c0564984b21da9ffe785]]]
Former-commit-id: 39bf907df7
Former-commit-id: 9e36b2f9b09d3f4dc4f9cdf074839d358f49c86a [formerly 5be0eab696]
Former-commit-id: 8ebeb61cea
This commit is contained in:
Ben Steffensmeier 2013-02-25 14:55:34 -06:00
parent 6b5fdb5672
commit abe93c1f6e

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;