Ignore:
Timestamp:
2014-02-27T02:50:12+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (Constructor Calls Overridable Method)

File:
1 edited

Legend:

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

    r6204 r6890  
    107107    }
    108108
    109     public void add(LatLon c) {
     109    public final void add(LatLon c) {
    110110        add(c.lon(), c.lat());
    111111    }
     
    114114     * Extends this bbox to include the point (x, y)
    115115     */
    116     public void add(double x, double y) {
     116    public final void add(double x, double y) {
    117117        xmin = Math.min(xmin, x);
    118118        xmax = Math.max(xmax, x);
     
    122122    }
    123123
    124     public void add(BBox box) {
     124    public final void add(BBox box) {
    125125        xmin = Math.min(xmin, box.xmin);
    126126        xmax = Math.max(xmax, box.xmax);
Note: See TracChangeset for help on using the changeset viewer.