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

fix squid:RedundantThrowsDeclarationCheck + consistent Javadoc for exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java

    r6883 r8291  
    4242     * Does nothing if primitives is null or empty.
    4343     *
    44      * @param targetLayer  the target layer. Must not be null.
     44     * @param targetLayer the target layer. Must not be null.
    4545     * @param children the collection of child primitives.
    46      * @exception IllegalArgumentException thrown if targetLayer is null
     46     * @throws IllegalArgumentException if targetLayer is null
    4747     */
    48     public static void downloadReferrers(OsmDataLayer targetLayer, Collection<OsmPrimitive> children) throws IllegalArgumentException {
     48    public static void downloadReferrers(OsmDataLayer targetLayer, Collection<OsmPrimitive> children) {
    4949        if (children == null || children.isEmpty()) return;
    5050        Main.worker.submit(new DownloadReferrersTask(targetLayer, children));
     
    5656     * Does nothing if primitives is null or empty.
    5757     *
    58      * @param targetLayer  the target layer. Must not be null.
     58     * @param targetLayer the target layer. Must not be null.
    5959     * @param children the collection of primitives, given as map of ids and types
    60      * @exception IllegalArgumentException thrown if targetLayer is null
     60     * @throws IllegalArgumentException if targetLayer is null
    6161     */
    62     public static void downloadReferrers(OsmDataLayer targetLayer, Map<Long, OsmPrimitiveType> children) throws IllegalArgumentException {
     62    public static void downloadReferrers(OsmDataLayer targetLayer, Map<Long, OsmPrimitiveType> children) {
    6363        if (children == null || children.isEmpty()) return;
    6464        Main.worker.submit(new DownloadReferrersTask(targetLayer, children));
     
    6666
    6767    /**
    68      * Downloads the primitives referring to the primitive given by <code>id</code> and
    69      * <code>type</code>.
     68     * Downloads the primitives referring to the primitive given by <code>id</code> and <code>type</code>.
    7069     *
    71      * @param targetLayer  the target layer. Must not be null.
     70     * @param targetLayer the target layer. Must not be null.
    7271     * @param id the primitive id. id &gt; 0 required.
    7372     * @param type the primitive type. type != null required
    74      * @exception IllegalArgumentException thrown if targetLayer is null
    75      * @exception IllegalArgumentException thrown if id &lt;= 0
    76      * @exception IllegalArgumentException thrown if type == null
     73     * @throws IllegalArgumentException if targetLayer is null
     74     * @throws IllegalArgumentException if id &lt;= 0
     75     * @throws IllegalArgumentException if type == null
    7776     */
    78     public static void downloadReferrers(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) throws IllegalArgumentException {
     77    public static void downloadReferrers(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) {
    7978        if (id <= 0)
    8079            throw new IllegalArgumentException(MessageFormat.format("Id > 0 required, got {0}", id));
Note: See TracChangeset for help on using the changeset viewer.