Merge "Issue #1659 Cache station in StationUtils" into development
Former-commit-id:66e1411de1
[formerlybbbdc17c06
[formerly 70f064bed284629fe521ac8d3596cb8ac798c0c7]] Former-commit-id:bbbdc17c06
Former-commit-id:c7d01eb0c5
This commit is contained in:
commit
02b52de3ce
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue