Ignore:
Timestamp:
2015-05-16T15:13:38+02:00 (11 years ago)
Author:
Don-vip
Message:

fix Findbugs performance issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/NodeData.java

    r6890 r8365  
    1515    private double lon = Double.NaN;
    1616
    17     public NodeData() {}
     17    /**
     18     * Constructs a new {@code NodeData}.
     19     */
     20    public NodeData() {
    1821
     22    }
     23
     24    /**
     25     * Constructs a new {@code NodeData}.
     26     * @param data node data to copy
     27     */
    1928    public NodeData(NodeData data) {
    2029        super(data);
     
    4453    @Override
    4554    public EastNorth getEastNorth() {
    46         /*
    47          * No internal caching of projected coordinates needed. In contrast to getEastNorth()
    48          * on Node, this method is rarely used. Caching would be overkill.
    49          */
     55        // No internal caching of projected coordinates needed. In contrast to getEastNorth()
     56        // on Node, this method is rarely used. Caching would be overkill.
    5057        return Projections.project(getCoor());
    5158    }
     
    5360    @Override
    5461    public void setEastNorth(EastNorth eastNorth) {
    55         LatLon ll = Projections.inverseProject(eastNorth);
    56         setCoor(ll);
     62        setCoor(Projections.inverseProject(eastNorth));
    5763    }
    5864
     
    7682        visitor.visit(this);
    7783    }
    78 
    7984}
Note: See TracChangeset for help on using the changeset viewer.