Changeset 11937 in josm


Ignore:
Timestamp:
2017-04-16T21:13:42+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S2325 - "private" methods that don't access instance data should be "static"

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

Legend:

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

    r11893 r11937  
    12131213    }
    12141214
    1215     private TileAnchor getAnchor(Tile tile, BufferedImage image) {
     1215    private static TileAnchor getAnchor(Tile tile, BufferedImage image) {
    12161216        if (tile instanceof ReprojectionTile) {
    12171217            return ((ReprojectionTile) tile).getAnchor();
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/ReprojectionTile.java

    r11897 r11937  
    167167
    168168    // add margin and align to pixel grid
    169     private ProjectionBounds pbMarginAndAlign(ProjectionBounds box, double scale, double margin) {
     169    private static ProjectionBounds pbMarginAndAlign(ProjectionBounds box, double scale, double margin) {
    170170        double minEast = Math.floor(box.minEast / scale - margin) * scale;
    171171        double minNorth = -Math.floor(-(box.minNorth / scale - margin)) * scale;
     
    176176
    177177    // dimension in pixel
    178     private Dimension getDimension(ProjectionBounds bounds, double scale) {
     178    private static Dimension getDimension(ProjectionBounds bounds, double scale) {
    179179        return new Dimension(
    180180                (int) Math.round((bounds.maxEast - bounds.minEast) / scale),
Note: See TracChangeset for help on using the changeset viewer.