Ignore:
Timestamp:
2016-05-11T02:44:10+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:AssignmentInSubExpressionCheck - Assignments should not be made from within sub-expressions

Location:
trunk/src/org/openstreetmap/josm/gui/layer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r10168 r10179  
    15801580                int offset = 200;
    15811581                for (String part: cachedTileLoader.getStats().split("\n")) {
    1582                     myDrawString(g, tr("Cache stats: {0}", part), 50, offset += 15);
    1583                 }
    1584 
     1582                    offset += 15;
     1583                    myDrawString(g, tr("Cache stats: {0}", part), 50, offset);
     1584                }
    15851585            }
    15861586        }
  • trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java

    r10173 r10179  
    103103
    104104    public double getPPD() {
    105         if (!Main.isDisplayingMapView()) return Main.getProjection().getDefaultZoomInPPD();
     105        if (!Main.isDisplayingMapView())
     106            return Main.getProjection().getDefaultZoomInPPD();
    106107        ProjectionBounds bounds = Main.map.mapView.getProjectionBounds();
    107108        return Main.map.mapView.getWidth() / (bounds.maxEast - bounds.minEast);
     
    122123
    123124    public void displace(double dx, double dy) {
    124         setOffset(this.dx += dx, this.dy += dy);
    125     }
    126 
     125        this.dx += dx;
     126        this.dy += dy;
     127        setOffset(this.dx, this.dy);
     128    }
     129
     130    /**
     131     * Returns imagery info.
     132     * @return imagery info
     133     */
    127134    public ImageryInfo getInfo() {
    128135        return info;
Note: See TracChangeset for help on using the changeset viewer.