Ignore:
Timestamp:
2016-03-07T21:45:35+01:00 (8 years ago)
Author:
Don-vip
Message:

remove deprecated stuff, code cleanup, javadoc, unit tests

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r9935 r9949  
    1111import java.net.CookieHandler;
    1212import java.net.CookieManager;
    13 import java.net.HttpRetryException;
    1413import java.net.HttpURLConnection;
    1514import java.net.URL;
     
    522521
    523522    /**
    524      * This method is used to enable streaming of a HTTP request body without internal buffering,
    525      * when the content length is known in advance.
    526      * <p>
    527      * An exception will be thrown if the application attempts to write more data than the indicated content-length,
    528      * or if the application closes the OutputStream before writing the indicated amount.
    529      * <p>
    530      * When output streaming is enabled, authentication and redirection cannot be handled automatically.
    531      * A {@linkplain HttpRetryException} will be thrown when reading the response if authentication or redirection
    532      * are required. This exception can be queried for the details of the error.
    533      *
    534      * @param contentLength The number of bytes which will be written to the OutputStream
    535      * @return {@code this}
    536      * @see HttpURLConnection#setFixedLengthStreamingMode(long)
    537      * @since 9178
    538      * @deprecated Submitting data via POST, PUT, DELETE automatically sets this property on the connection
    539      */
    540     @Deprecated
    541     public HttpClient setFixedLengthStreamingMode(long contentLength) {
    542         return this;
    543     }
    544 
    545     /**
    546523     * Sets the {@code Accept} header.
    547524     * @param accept header value
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r9827 r9949  
    132132     */
    133133    public enum ImageSizes {
    134         /** SMALL_ICON value of on Action */
     134        /** SMALL_ICON value of an Action */
    135135        SMALLICON(Main.pref.getInteger("iconsize.smallicon", 16)),
    136         /** LARGE_ICON_KEY value of on Action */
     136        /** LARGE_ICON_KEY value of an Action */
    137137        LARGEICON(Main.pref.getInteger("iconsize.largeicon", 24)),
    138138        /** map icon */
     
    375375        overlayInfo.add(overlay);
    376376        return this;
    377     }
    378 
    379     /**
    380      * Convert enumerated size values to real numbers
    381      * @param size the size enumeration
    382      * @return dimension of image in pixels
    383      * @since 7687
    384      * @deprecated Use {@link ImageSizes#getImageDimension()} instead
    385      */
    386     @Deprecated
    387     public static Dimension getImageSizes(ImageSizes size) {
    388         return (size == null ? ImageSizes.DEFAULT : size).getImageDimension();
    389377    }
    390378
Note: See TracChangeset for help on using the changeset viewer.