Ignore:
Timestamp:
2016-07-02T03:55:03+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffset.java

    r29384 r32528  
     1// License: WTFPL. For details, see LICENSE file.
    12package iodb;
    23
    34import java.util.Map;
     5
    46import org.openstreetmap.josm.data.coor.CoordinateFormat;
    57import org.openstreetmap.josm.data.coor.LatLon;
     
    911 * of the position point on the imagery layer. The offset is then calculated
    1012 * as a difference between the two.
    11  * 
     13 *
    1214 * @author Zverik
    1315 * @license WTFPL
     
    1820    private int minZoom, maxZoom;
    1921
    20     public ImageryOffset( String imagery, LatLon imageryPos ) {
     22    public ImageryOffset(String imagery, LatLon imageryPos) {
    2123        this.imageryPos = imageryPos;
    2224        this.imagery = imagery;
     
    2426        this.maxZoom = 30;
    2527    }
    26    
     28
    2729    public void setMaxZoom(int maxZoom) {
    2830        this.maxZoom = maxZoom;
     
    3234        this.minZoom = minZoom;
    3335    }
    34    
     36
    3537    public LatLon getImageryPos() {
    3638        return imageryPos;
     
    5052
    5153    @Override
    52     public void putServerParams( Map<String, String> map ) {
     54    public void putServerParams(Map<String, String> map) {
    5355        super.putServerParams(map);
    5456        map.put("imagery", imagery);
    5557        map.put("imlat", imageryPos.latToString(CoordinateFormat.DECIMAL_DEGREES));
    5658        map.put("imlon", imageryPos.lonToString(CoordinateFormat.DECIMAL_DEGREES));
    57         if( minZoom > 0 )
     59        if (minZoom > 0)
    5860            map.put("minzoom", String.valueOf(minZoom));
    59         if( maxZoom < 30 )
     61        if (maxZoom < 30)
    6062            map.put("maxzoom", String.valueOf(maxZoom));
    6163    }
     
    6365    @Override
    6466    public String toString() {
    65         return "ImageryOffset{" + "imageryPos=" + imageryPos + ", imagery=" + imagery + "position=" + position + ", date=" + date + ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}';
     67        return "ImageryOffset{" + "imageryPos=" + imageryPos + ", imagery=" + imagery + "position=" + position + ", date=" + date +
     68                ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}';
    6669    }
    6770}
Note: See TracChangeset for help on using the changeset viewer.