Ignore:
Timestamp:
2015-05-17T17:21:01+02:00 (7 years ago)
Author:
Don-vip
Message:

fix some Findbugs warnings

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r8384 r8387  
    631631        for (Node n : way.getNodes()) {
    632632            if (lastN != null) {
    633                 n.getEastNorth().getX();
    634 
    635633                area += (calcX(n) * calcY(lastN)) - (calcY(n) * calcX(lastN));
    636634            }
  • trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java

    r8365 r8387  
    8484        int x, y;
    8585        if (width == -1 && offsetLeft < 0) {
    86             x = new Double(w*offsetRight).intValue() - overlay.getIconWidth();
     86            x = (int)(w*offsetRight) - overlay.getIconWidth();
    8787        } else {
    88             x = new Double(w*offsetLeft).intValue();
     88            x = (int)(w*offsetLeft);
    8989        }
    9090        if (height == -1 && offsetTop < 0) {
    91             y = new Double(h*offsetBottom).intValue() - overlay.getIconHeight();
     91            y = (int)(h*offsetBottom) - overlay.getIconHeight();
    9292        } else {
    93             y = new Double(h*offsetTop).intValue();
     93            y = (int)(h*offsetTop);
    9494        }
    9595        overlay.paintIcon(null, ground.getGraphics(), x, y);
Note: See TracChangeset for help on using the changeset viewer.