Ignore:
Timestamp:
2015-10-08T00:22:36+02:00 (9 years ago)
Author:
Don-vip
Message:

fix Checkstyle issues

Location:
trunk/src/org/openstreetmap/josm/io
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/ChangesetClosedException.java

    r8510 r8836  
    3131    public static final String ERROR_HEADER_PATTERN = "The changeset (\\d+) was closed at (.*)";
    3232
    33     public static enum Source {
     33    public enum Source {
    3434        /**
    3535         * The exception was thrown when a changeset was updated. This most likely means
  • trunk/src/org/openstreetmap/josm/io/GeoJSONWriter.java

    r8813 r8836  
    8181        private final JsonObjectBuilder geomObj;
    8282
    83         public GeometryPrimitiveVisitor(JsonObjectBuilder geomObj) {
     83        GeometryPrimitiveVisitor(JsonObjectBuilder geomObj) {
    8484            this.geomObj = geomObj;
    8585        }
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r8510 r8836  
    3131
    3232    /** Handler for the different types that NMEA speaks. */
    33     public static enum NMEA_TYPE {
     33    public enum NMEA_TYPE {
    3434
    3535        /** RMC = recommended minimum sentence C. */
     
    5858
    5959    // GPVTG
    60     public static enum GPVTG {
     60    public enum GPVTG {
    6161        COURSE(1), COURSE_REF(2), // true course
    6262        COURSE_M(3), COURSE_M_REF(4), // magnetic course
     
    7373
    7474    // The following only applies to GPRMC
    75     public static enum GPRMC {
     75    public enum GPRMC {
    7676        TIME(1),
    7777        /** Warning from the receiver (A = data ok, V = warning) */
     
    9797
    9898    // The following only applies to GPGGA
    99     public static enum GPGGA {
     99    public enum GPGGA {
    100100        TIME(1), LATITUDE(2), LATITUDE_NAME(3), LONGITUDE(4), LONGITUDE_NAME(5),
    101101        /**
     
    116116    }
    117117
    118     public static enum GPGSA {
     118    public enum GPGSA {
    119119        AUTOMATIC(1),
    120120        FIX_TYPE(2), // 1 = not fixed, 2 = 2D fixed, 3 = 3D fixed)
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r8510 r8836  
    168168        private boolean fastFail;
    169169
    170         public CapabilitiesCache(ProgressMonitor monitor, boolean fastFail) {
     170        CapabilitiesCache(ProgressMonitor monitor, boolean fastFail) {
    171171            super(CAPABILITIES + getBaseUrl().hashCode(), CacheCustomContent.INTERVAL_WEEKLY);
    172172            this.monitor = monitor;
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r8582 r8836  
    544544    private static class OsmParsingException extends XMLStreamException {
    545545
    546         public OsmParsingException(String msg, Location location) {
     546        OsmParsingException(String msg, Location location) {
    547547            super(msg); /* cannot use super(msg, location) because it messes with the message preventing localization */
    548548            this.location = location;
    549549        }
    550550
    551         public OsmParsingException(String msg, Location location, Throwable th) {
     551        OsmParsingException(String msg, Location location, Throwable th) {
    552552            super(msg, th);
    553553            this.location = location;
     
    580580         * @param location The parser location
    581581         */
    582         public OsmParsingCanceledException(String msg, Location location) {
     582        OsmParsingCanceledException(String msg, Location location) {
    583583            super(msg, location);
    584584        }
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java

    r8540 r8836  
    5959        private int num;
    6060
    61         public DeleteTagMarker(int num) {
     61        DeleteTagMarker(int num) {
    6262            this.num = num;
    6363        }
     
    7676        private final Map<String, Integer> valueCount;
    7777
    78         public ExistingValues(String tag) {
     78        ExistingValues(String tag) {
    7979            this.tag = tag;
    8080            this.valueCount = new HashMap<>();
     
    159159            tm.setValueAt(tags[i][0], i, 1);
    160160            tm.setValueAt(tags[i][1].isEmpty() ? new DeleteTagMarker(count[i]) : tags[i][1], i, 2);
    161             tm.setValueAt(old , i, 3);
     161            tm.setValueAt(old, i, 3);
    162162        }
    163163
     
    226226                }
    227227            });
    228             tablePanel.add(c , GBC.eol().insets(20, 10, 0, 0));
     228            tablePanel.add(c, GBC.eol().insets(20, 10, 0, 0));
    229229        }
    230230        setContent(tablePanel);
  • trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java

    r8510 r8836  
    6262
    6363    private class LayerSaveAction extends AbstractAction {
    64         public LayerSaveAction() {
     64        LayerSaveAction() {
    6565            putValue(SMALL_ICON, new ImageProvider("save").setWidth(16).get());
    6666            putValue(SHORT_DESCRIPTION, layer.requiresSaveToFile() ?
  • trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java

    r8625 r8836  
    5252
    5353    static {
    54         registerSessionLayerExporter(OsmDataLayer.class , OsmDataSessionExporter.class);
    55         registerSessionLayerExporter(TMSLayer.class , ImagerySessionExporter.class);
    56         registerSessionLayerExporter(WMSLayer.class , ImagerySessionExporter.class);
    57         registerSessionLayerExporter(WMTSLayer.class , ImagerySessionExporter.class);
    58         registerSessionLayerExporter(GpxLayer.class , GpxTracksSessionExporter.class);
    59         registerSessionLayerExporter(GeoImageLayer.class , GeoImageSessionExporter.class);
     54        registerSessionLayerExporter(OsmDataLayer.class, OsmDataSessionExporter.class);
     55        registerSessionLayerExporter(TMSLayer.class, ImagerySessionExporter.class);
     56        registerSessionLayerExporter(WMSLayer.class, ImagerySessionExporter.class);
     57        registerSessionLayerExporter(WMTSLayer.class, ImagerySessionExporter.class);
     58        registerSessionLayerExporter(GpxLayer.class, GpxTracksSessionExporter.class);
     59        registerSessionLayerExporter(GeoImageLayer.class, GeoImageSessionExporter.class);
    6060        registerSessionLayerExporter(MarkerLayer.class, MarkerSessionExporter.class);
    6161    }
Note: See TracChangeset for help on using the changeset viewer.