Ignore:
Timestamp:
2010-01-13T20:12:48+01:00 (16 years ago)
Author:
mjulius
Message:

fix messages for gui/dialogs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/DownloadRelationTask.java

    r2751 r2847  
    1919import org.openstreetmap.josm.io.OsmServerObjectReader;
    2020import org.openstreetmap.josm.io.OsmTransferException;
     21import org.openstreetmap.josm.tools.CheckParameterUtil;
    2122import org.xml.sax.SAXException;
    2223
     
    4344    public DownloadRelationTask(Collection<Relation> relations, OsmDataLayer layer) throws IllegalArgumentException{
    4445        super(tr("Download relations"), false /* don't ignore exception */);
    45         if (relations == null)
    46             throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null", "relations"));
    47         if (layer == null)
    48             throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null", "layer"));
     46        CheckParameterUtil.ensureParameterNotNull(relations, "relations");
     47        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    4948        this.relations = relations;
    5049        this.layer = layer;
Note: See TracChangeset for help on using the changeset viewer.