Ignore:
Timestamp:
2015-05-22T21:15:05+02:00 (5 years ago)
Author:
Don-vip
Message:

code style/cleanup - Uncommented Empty Constructor

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

Legend:

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

    r8394 r8415  
    5050    /** a collection of changeset ids to query for */
    5151    private Collection<Long> changesetIds = null;
    52 
    53     /**
    54      * Constructs a new {@code ChangesetQuery}.
    55      */
    56     public ChangesetQuery() {
    57 
    58     }
    5952
    6053    /**
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r8394 r8415  
    562562            }
    563563            if (cancel)
    564                 throw new OsmTransferCanceledException();
     564                throw new OsmTransferCanceledException("Operation canceled" + (i > 0 ? " in retry #"+i : ""));
    565565            try {
    566566                Thread.sleep(1000);
  • trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java

    r8291 r8415  
    3030     */
    3131    protected OsmChangeReader() {
     32        // Restricts visibility
    3233    }
    3334
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r8378 r8415  
    7878     */
    7979    protected OsmReader() {
     80        // Restricts visibility
    8081    }
    8182
  • trunk/src/org/openstreetmap/josm/io/OsmServerReader.java

    r8390 r8415  
    143143            }
    144144            if (cancel)
    145                 throw new OsmTransferCanceledException();
     145                throw new OsmTransferCanceledException("Operation canceled");
    146146            if (Main.pref.getBoolean("osm-server.use-compression", true)) {
    147147                activeConnection.setRequestProperty("Accept-Encoding", "gzip, deflate");
     
    171171
    172172                if (activeConnection.getResponseCode() == HttpURLConnection.HTTP_PROXY_AUTH)
    173                     throw new OsmTransferCanceledException();
     173                    throw new OsmTransferCanceledException("Proxy Authentication Required");
    174174
    175175                String encoding = activeConnection.getContentEncoding();
  • trunk/src/org/openstreetmap/josm/io/OsmTransferCanceledException.java

    r7509 r8415  
    88
    99    /**
    10      * Constructs a new {@code OsmTransferCanceledException}, without root cause.
     10     * Constructs a new {@code OsmTransferCanceledException}, without message.
     11     * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method)
     12     * @since 8415
    1113     */
    12     public OsmTransferCanceledException() {
    13 
     14    public OsmTransferCanceledException(String message) {
     15        super(message);
    1416    }
    1517
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java

    r8395 r8415  
    276276    public static class RequestHandlerException extends Exception {
    277277
     278        /**
     279         * Constructs a new {@code RequestHandlerException}.
     280         * @param message the detail message. The detail message is saved for later retrieval by the {@link #getMessage()} method.
     281         */
    278282        public RequestHandlerException(String message) {
    279283            super(message);
    280284        }
     285
     286        /**
     287         * Constructs a new {@code RequestHandlerException}.
     288         * @param message the detail message. The detail message is saved for later retrieval by the {@link #getMessage()} method.
     289         * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
     290         */
    281291        public RequestHandlerException(String message, Throwable cause) {
    282292            super(message, cause);
    283293        }
     294
     295        /**
     296         * Constructs a new {@code RequestHandlerException}.
     297         * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
     298         */
    284299        public RequestHandlerException(Throwable cause) {
    285300            super(cause);
    286         }
    287         public RequestHandlerException() {
    288301        }
    289302    }
Note: See TracChangeset for help on using the changeset viewer.