Ignore:
Timestamp:
2015-04-29T01:44:01+02:00 (10 years ago)
Author:
Don-vip
Message:

fix squid:RedundantThrowsDeclarationCheck + consistent Javadoc for exceptions

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

Legend:

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

    r6506 r8291  
    106106     * @param id  the primitive  id
    107107     * @param parameterName the name of the parameter to be checked
    108      * @throws IllegalArgumentException thrown if id is null
    109      * @throws IllegalArgumentException thrown if id.getType() != NODE
     108     * @throws IllegalArgumentException if id is null
     109     * @throws IllegalArgumentException if id.getType() != NODE
    110110     */
    111111    public static void ensureValidNodeId(PrimitiveId id, String parameterName) throws IllegalArgumentException {
  • trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java

    r7335 r8291  
    3434     * @param uri The URI to display
    3535     * @return <code>null</code> for success or a string in case of an error.
    36      * @throws IllegalStateException thrown if no platform is set to which opening the URL can be dispatched,
     36     * @throws IllegalStateException if no platform is set to which opening the URL can be dispatched,
    3737     * {@link Main#platform}
    3838     */
     
    8181     * @param url The URL to display
    8282     * @return <code>null</code> for success or a string in case of an error.
    83      * @throws IllegalStateException thrown if no platform is set to which opening the URL can be dispatched,
     83     * @throws IllegalStateException if no platform is set to which opening the URL can be dispatched,
    8484     * {@link Main#platform}
    8585     */
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r7005 r8291  
    2222    }
    2323
    24     public static Bounds parse(String url) throws IllegalArgumentException {
     24    public static Bounds parse(String url) {
    2525        try {
    2626            // a percent sign indicates an encoded URL (RFC 1738).
     
    8383     * @return Bounds if hashurl, {@code null} otherwise
    8484     */
    85     private static Bounds parseHashURLs(String url) throws IllegalArgumentException {
     85    private static Bounds parseHashURLs(String url) {
    8686        int startIndex = url.indexOf("#map=");
    8787        if (startIndex == -1) return null;
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r8287 r8291  
    353353     * @param out The destination file
    354354     * @return the path to the target file
    355      * @throws java.io.IOException If any I/O error occurs
    356      * @throws IllegalArgumentException If {@code in} or {@code out} is {@code null}
     355     * @throws IOException if any I/O error occurs
     356     * @throws IllegalArgumentException if {@code in} or {@code out} is {@code null}
    357357     * @since 7003
    358358     */
     
    367367     * @param in The source directory
    368368     * @param out The destination directory
    369      * @throws IOException If any I/O error ooccurs
    370      * @throws IllegalArgumentException If {@code in} or {@code out} is {@code null}
     369     * @throws IOException if any I/O error ooccurs
     370     * @throws IllegalArgumentException if {@code in} or {@code out} is {@code null}
    371371     * @since 7835
    372372     */
  • trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java

    r7463 r8291  
    222222     *
    223223     * @param preferenceKey the preference key
    224      * @throws WindowGeometryException thrown if no such key exist or if the preference value has
     224     * @throws WindowGeometryException if no such key exist or if the preference value has
    225225     * an illegal format
    226226     */
Note: See TracChangeset for help on using the changeset viewer.