Ignore:
Timestamp:
2015-04-29T01:44:01+02:00 (10 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/command/DeleteCommand.java

    r7675 r8291  
    5757     *
    5858     * @param data the primitives to delete. Must neither be null nor empty.
    59      * @throws IllegalArgumentException thrown if data is null or empty
    60      */
    61     public DeleteCommand(Collection<? extends OsmPrimitive> data) throws IllegalArgumentException {
     59     * @throws IllegalArgumentException if data is null or empty
     60     */
     61    public DeleteCommand(Collection<? extends OsmPrimitive> data) {
    6262        CheckParameterUtil.ensureParameterNotNull(data, "data");
    6363        if (data.isEmpty())
     
    7171     *
    7272     * @param data  the primitive to delete. Must not be null.
    73      * @throws IllegalArgumentException thrown if data is null
    74      */
    75     public DeleteCommand(OsmPrimitive data) throws IllegalArgumentException {
     73     * @throws IllegalArgumentException if data is null
     74     */
     75    public DeleteCommand(OsmPrimitive data) {
    7676        this(Collections.singleton(data));
    7777    }
     
    8383     * @param layer the layer context for deleting this primitive. Must not be null.
    8484     * @param data the primitive to delete. Must not be null.
    85      * @throws IllegalArgumentException thrown if data is null
    86      * @throws IllegalArgumentException thrown if layer is null
    87      */
    88     public DeleteCommand(OsmDataLayer layer, OsmPrimitive data) throws IllegalArgumentException {
     85     * @throws IllegalArgumentException if data is null
     86     * @throws IllegalArgumentException if layer is null
     87     */
     88    public DeleteCommand(OsmDataLayer layer, OsmPrimitive data) {
    8989        this(layer, Collections.singleton(data));
    9090    }
     
    9696     * @param layer the layer context for deleting these primitives. Must not be null.
    9797     * @param data the primitives to delete. Must neither be null nor empty.
    98      * @throws IllegalArgumentException thrown if layer is null
    99      * @throws IllegalArgumentException thrown if data is null or empty
    100      */
    101     public DeleteCommand(OsmDataLayer layer, Collection<? extends OsmPrimitive> data) throws IllegalArgumentException{
     98     * @throws IllegalArgumentException if layer is null
     99     * @throws IllegalArgumentException if data is null or empty
     100     */
     101    public DeleteCommand(OsmDataLayer layer, Collection<? extends OsmPrimitive> data) {
    102102        super(layer);
    103103        CheckParameterUtil.ensureParameterNotNull(data, "data");
     
    246246     * @param silent  Set to true if the user should not be bugged with additional dialogs
    247247     * @return command A command to perform the deletions, or null of there is nothing to delete.
    248      * @throws IllegalArgumentException thrown if layer is null
    249      */
    250     public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, boolean silent) throws IllegalArgumentException {
     248     * @throws IllegalArgumentException if layer is null
     249     */
     250    public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, boolean silent) {
    251251        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    252252        if (selection == null || selection.isEmpty()) return null;
     
    271271     * @param selection The list of all object to be deleted.
    272272     * @return command A command to perform the deletions, or null of there is nothing to delete.
    273      * @throws IllegalArgumentException thrown if layer is null
     273     * @throws IllegalArgumentException if layer is null
    274274     */
    275275    public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection) {
Note: See TracChangeset for help on using the changeset viewer.