Ignore:
Timestamp:
2016-09-03T17:08:38+02:00 (9 years ago)
Author:
donvip
Message:

fix error-prone warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/FakeMapView.java

    r32194 r32914  
    4343        ProjectionBounds parent_bounds = parent.getProjectionBounds();
    4444        max_east_west =
    45             parent_bounds.maxEast - parent_bounds.minEast;
     45                parent_bounds.maxEast - parent_bounds.minEast;
    4646    }
    4747
     
    6161            parent.zoomTo(new ProjectionBounds(
    6262                    new EastNorth(
    63                         parent_center.east() -
    64                         max_east_west / 2,
    65                         parent_center.north()),
     63                            parent_center.east() -
     64                            max_east_west / 2,
     65                            parent_center.north()),
    6666                    new EastNorth(
    67                         parent_center.east() +
    68                         max_east_west / 2,
    69                         parent_center.north())));
     67                            parent_center.east() +
     68                            max_east_west / 2,
     69                            parent_center.north())));
    7070
    7171            /* Request again because NavigatableContent adds
     
    7373             */
    7474            ProjectionBounds new_bounds =
    75                 parent.getProjectionBounds();
     75                    parent.getProjectionBounds();
    7676            max_east_west =
    77                 new_bounds.maxEast - new_bounds.minEast;
     77                    new_bounds.maxEast - new_bounds.minEast;
    7878        }
    7979
     
    100100    }
    101101
     102    @Override
    102103    public ProjectionBounds getProjectionBounds() {
    103104        return view_bounds;
    104105    }
    105106
     107    @Override
    106108    public Point getPoint(EastNorth p) {
    107109        double x = p.east() - view_bounds.minEast;
     
    113115    }
    114116
     117    @Override
    115118    public EastNorth getEastNorth(int x, int y) {
    116119        return new EastNorth(
    117             view_bounds.minEast + x * this.scale,
    118             view_bounds.minNorth - y * this.scale);
     120                view_bounds.minEast + x * this.scale,
     121                view_bounds.minNorth - y * this.scale);
    119122    }
    120123
     
    123126    }
    124127
     128    @Override
    125129    public Graphics getGraphics() {
    126130        return graphics;
    127131    }
    128132
     133    @Override
    129134    public void repaint() {
    130135    }
Note: See TracChangeset for help on using the changeset viewer.