Changeset 33128 in osm for applications/viewer/jmapviewer


Ignore:
Timestamp:
2017-01-25T02:07:59+01:00 (8 years ago)
Author:
donvip
Message:

error-prone - enums should be immutable, and cannot have non-final fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java

    r32769 r33128  
    3030        SPOT("spot", "/TileSender.ashx?ModeKey=tile&MapName=F7B8CF651682420FA1749D894C8AD0F6&LayerName=F51CE95441284AF6B2FC319B609C7DEC");
    3131
    32         private String name;
    33         private String uri;
     32        private final String name;
     33        private final String uri;
    3434
    3535        ScanexLayer(String name, String uri) {
     
    125125    public ICoordinate xyToLatLon(int x, int y, int zoom) {
    126126        return new Coordinate(
    127                 tileYToLat((double) y, zoom),
     127                tileYToLat(y, zoom),
    128128                osmMercator.xToLon(x, zoom)
    129129                );
     
    141141    public ICoordinate tileXYToLatLon(int x, int y, int zoom) {
    142142        return new Coordinate(
    143                 tileYToLat((double) y, zoom),
     143                tileYToLat(y, zoom),
    144144                osmMercator.xToLon(x * getTileSize(), zoom)
    145145                );
Note: See TracChangeset for help on using the changeset viewer.