Issue #1659 Cache station in StationUtils
Former-commit-id:98ec05e12c
[formerly0ff907499c
] [formerly842437870e
] [formerly39bf907df7
[formerly842437870e
[formerly 5bd8303893ad59a23571c0564984b21da9ffe785]]] Former-commit-id:39bf907df7
Former-commit-id: 9e36b2f9b09d3f4dc4f9cdf074839d358f49c86a [formerly5be0eab696
] Former-commit-id:8ebeb61cea
This commit is contained in:
parent
6b5fdb5672
commit
abe93c1f6e
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