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/downloadtasks/DownloadReferrersTask.java

    r7005 r8291  
    3838/**
    3939 * The asynchronous task for downloading referring primitives
    40  *
     40 * @since 2923
    4141 */
    4242public class DownloadReferrersTask extends PleaseWaitRunnable {
     
    5656     * @param targetLayer  the target layer for the downloaded primitives. Must not be null.
    5757     * @param children the collection of child primitives for which parents are to be downloaded
    58      *
    5958     */
    6059    public DownloadReferrersTask(OsmDataLayer targetLayer, Collection<OsmPrimitive> children) {
     
    103102     * @param id the primitive id. id &gt; 0 required.
    104103     * @param type the primitive type. type != null required
    105      * @exception IllegalArgumentException thrown if id &lt;= 0
    106      * @exception IllegalArgumentException thrown if type == null
    107      * @exception IllegalArgumentException thrown if targetLayer == null
    108      *
    109      */
    110     public DownloadReferrersTask(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) throws IllegalArgumentException {
     104     * @throws IllegalArgumentException if id &lt;= 0
     105     * @throws IllegalArgumentException if type == null
     106     * @throws IllegalArgumentException if targetLayer == null
     107     */
     108    public DownloadReferrersTask(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) {
    111109        super("Download referrers", false /* don't ignore exception*/);
    112110        CheckParameterUtil.ensureParameterNotNull(targetLayer, "targetLayer");
     
    126124     * @param targetLayer the target layer. Must not be null.
    127125     * @param primitiveId a PrimitiveId object.
    128      * @exception IllegalArgumentException thrown if id &lt;= 0
    129      * @exception IllegalArgumentException thrown if targetLayer == null
    130      *
    131      */
    132     public DownloadReferrersTask(OsmDataLayer targetLayer, PrimitiveId primitiveId) throws IllegalArgumentException {
     126     * @throws IllegalArgumentException if id &lt;= 0
     127     * @throws IllegalArgumentException if targetLayer == null
     128     */
     129    public DownloadReferrersTask(OsmDataLayer targetLayer, PrimitiveId primitiveId) {
    133130        this(targetLayer,  primitiveId, null);
    134131    }
     
    140137     * @param primitiveId a PrimitiveId object.
    141138     * @param progressMonitor ProgressMonitor to use or null to create a new one.
    142      * @exception IllegalArgumentException thrown if id &lt;= 0
    143      * @exception IllegalArgumentException thrown if targetLayer == null
    144      *
     139     * @throws IllegalArgumentException if id &lt;= 0
     140     * @throws IllegalArgumentException if targetLayer == null
    145141     */
    146142    public DownloadReferrersTask(OsmDataLayer targetLayer, PrimitiveId primitiveId,
    147             ProgressMonitor progressMonitor) throws IllegalArgumentException {
     143            ProgressMonitor progressMonitor) {
    148144        super("Download referrers", progressMonitor, false /* don't ignore exception*/);
    149145        CheckParameterUtil.ensureParameterNotNull(targetLayer, "targetLayer");
    150146        if (primitiveId.isNew())
    151             throw new IllegalArgumentException(MessageFormat.format("Cannot download referrers for new primitives (ID {0})", primitiveId.getUniqueId()));
     147            throw new IllegalArgumentException(MessageFormat.format(
     148                    "Cannot download referrers for new primitives (ID {0})", primitiveId.getUniqueId()));
    152149        canceled = false;
    153150        this.children = new HashMap<>();
Note: See TracChangeset for help on using the changeset viewer.