Changeset 8291 in josm


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

fix squid:RedundantThrowsDeclarationCheck + consistent Javadoc for exceptions

Location:
trunk/src/org/openstreetmap/josm
Files:
136 edited

Legend:

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

    r8168 r8291  
    661661
    662662                        @Override
    663                         public void close() throws SecurityException {
     663                        public void close() {
    664664                        }
    665665                    });
  • trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java

    r7434 r8291  
    117117         *
    118118         * @return the user info
    119          * @throws OsmTransferException thrown in case of any communication exception
     119         * @throws OsmTransferException in case of any communication exception
    120120         */
    121121        protected UserInfo fetchUserInfo() throws OsmTransferException {
  • 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));
  • trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java

    r7414 r8291  
    7373     *
    7474     * @param layer the layer
    75      * @exception IllegalArgumentException thrown if layer is null
    76      * @exception IllegalArgumentException thrown if layer is neither an instance of {@link OsmDataLayer}
     75     * @throws IllegalArgumentException if layer is null
     76     * @throws IllegalArgumentException if layer is neither an instance of {@link OsmDataLayer}
    7777     *  nor of {@link GpxLayer}
    7878     */
  • trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java

    r7859 r8291  
    254254     * @param nodes the collection of nodes. Ignored if null
    255255     * @param targetLocationNode this node's location will be used for the target node
    256      * @throws IllegalArgumentException thrown if {@code layer} is null
     256     * @throws IllegalArgumentException if {@code layer} is null
    257257     */
    258258    public static void doMergeNodes(OsmDataLayer layer, Collection<Node> nodes, Node targetLocationNode) {
     
    284284     * @param targetLocationNode this node's location will be used for the targetNode.
    285285     * @return The command necessary to run in order to perform action, or {@code null} if there is nothing to do
    286      * @throws IllegalArgumentException thrown if {@code layer} is null
     286     * @throws IllegalArgumentException if {@code layer} is null
    287287     */
    288288    public static Command mergeNodes(OsmDataLayer layer, Collection<Node> nodes, Node targetLocationNode) {
     
    304304     * @param targetLocationNode this node's location will be used for the targetNode.
    305305     * @return The command necessary to run in order to perform action, or {@code null} if there is nothing to do
    306      * @throws IllegalArgumentException thrown if layer is null
     306     * @throws IllegalArgumentException if layer is null
    307307     */
    308308    public static Command mergeNodes(OsmDataLayer layer, Collection<Node> nodes, Node targetNode, Node targetLocationNode) {
  • trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java

    r7434 r8291  
    6565     *
    6666     * @param id  the id of a primitive in the {@link DataSet} of the current edit layer. Must not be null.
    67      * @throws IllegalArgumentException thrown if id is null
    68      * @exception IllegalStateException thrown if there is no primitive with <code>id</code> in
    69      *   the current dataset
    70      * @exception IllegalStateException thrown if there is no current dataset
    71      *
     67     * @throws IllegalArgumentException if id is null
     68     * @throws IllegalStateException if there is no primitive with <code>id</code> in the current dataset
     69     * @throws IllegalStateException if there is no current dataset
    7270     */
    73     public static void updatePrimitive(PrimitiveId id) throws IllegalStateException, IllegalArgumentException{
     71    public static void updatePrimitive(PrimitiveId id) {
    7472        ensureParameterNotNull(id, "id");
    7573        if (getEditLayer() == null)
  • trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java

    r7005 r8291  
    3838/**
    3939 * Uploads the current selection to the server.
    40  *
     40 * @since 2250
    4141 */
    42 public class UploadSelectionAction extends JosmAction{
     42public class UploadSelectionAction extends JosmAction {
     43    /**
     44     * Constructs a new {@code UploadSelectionAction}.
     45     */
    4346    public UploadSelectionAction() {
    4447        super(
     
    239242         * @param base the base collection. Must not be null.
    240243         * @return the "hull"
    241          * @throws IllegalArgumentException thrown if base is null
     244         * @throws IllegalArgumentException if base is null
    242245         */
    243         public Set<OsmPrimitive> build(Collection<OsmPrimitive> base) throws IllegalArgumentException{
     246        public Set<OsmPrimitive> build(Collection<OsmPrimitive> base) {
    244247            CheckParameterUtil.ensureParameterNotNull(base, "base");
    245248            hull = new HashSet<>();
  • 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<>();
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r8285 r8291  
    321321     * @param layer the layer in whose context the relation is deleted. Must not be null.
    322322     * @param toDelete  the relation to be deleted. Must  not be null.
    323      * @exception IllegalArgumentException thrown if layer is null
    324      * @exception IllegalArgumentException thrown if toDelete is nul
     323     * @throws IllegalArgumentException if layer is null
     324     * @throws IllegalArgumentException if toDelete is nul
    325325     */
    326326    public static void deleteRelation(OsmDataLayer layer, Relation toDelete) {
  • trunk/src/org/openstreetmap/josm/command/Command.java

    r8285 r8291  
    119119     *
    120120     * @param layer the data layer. Must not be null.
    121      * @throws IllegalArgumentException thrown if layer is null
    122      */
    123     public Command(OsmDataLayer layer) throws IllegalArgumentException {
     121     * @throws IllegalArgumentException if layer is null
     122     */
     123    public Command(OsmDataLayer layer) {
    124124        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    125125        this.layer = layer;
  • 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) {
  • trunk/src/org/openstreetmap/josm/data/APIDataSet.java

    r7599 r8291  
    215215     * dependencies can't be uploaded.
    216216     *
    217      * @throws CyclicUploadDependencyException thrown, if a cyclic dependency is detected
     217     * @throws CyclicUploadDependencyException if a cyclic dependency is detected
    218218     */
    219219    public void adjustRelationUploadOrder() throws CyclicUploadDependencyException{
  • trunk/src/org/openstreetmap/josm/data/Bounds.java

    r6830 r8291  
    164164    }
    165165
    166     public Bounds(String asString, String separator) throws IllegalArgumentException {
     166    public Bounds(String asString, String separator) {
    167167        this(asString, separator, ParseMethod.MINLAT_MINLON_MAXLAT_MAXLON);
    168168    }
    169169
    170     public Bounds(String asString, String separator, ParseMethod parseMethod) throws IllegalArgumentException {
     170    public Bounds(String asString, String separator, ParseMethod parseMethod) {
    171171        this(asString, separator, parseMethod, true);
    172172    }
    173173
    174     public Bounds(String asString, String separator, ParseMethod parseMethod, boolean roundToOsmPrecision) throws IllegalArgumentException {
     174    public Bounds(String asString, String separator, ParseMethod parseMethod, boolean roundToOsmPrecision) {
    175175        CheckParameterUtil.ensureParameterNotNull(asString, "asString");
    176176        String[] components = asString.split(separator);
     
    234234     * @param latExtent the latitude extent. &gt; 0 required.
    235235     * @param lonExtent the longitude extent. &gt; 0 required.
    236      * @throws IllegalArgumentException thrown if center is null
    237      * @throws IllegalArgumentException thrown if latExtent &lt;= 0
    238      * @throws IllegalArgumentException thrown if lonExtent &lt;= 0
     236     * @throws IllegalArgumentException if center is null
     237     * @throws IllegalArgumentException if latExtent &lt;= 0
     238     * @throws IllegalArgumentException if lonExtent &lt;= 0
    239239     */
    240240    public Bounds(LatLon center, double latExtent, double lonExtent) {
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r8186 r8291  
    9292
    9393            @Override
    94             public void close() throws SecurityException {
     94            public void close() {
    9595            }
    9696        });
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java

    r8286 r8291  
    77import java.io.InputStream;
    88import java.net.HttpURLConnection;
    9 import java.net.MalformedURLException;
    109import java.net.URL;
    1110import java.net.URLConnection;
     
    378377    }
    379378
    380     private HttpURLConnection getURLConnection() throws IOException, MalformedURLException {
     379    private HttpURLConnection getURLConnection() throws IOException {
    381380        HttpURLConnection urlConn = (HttpURLConnection) getUrl().openConnection();
    382381        urlConn.setRequestProperty("Accept", "text/html, image/png, image/jpeg, image/gif, */*");
  • trunk/src/org/openstreetmap/josm/data/conflict/ConflictCollection.java

    r7509 r8291  
    102102     *
    103103     * @param conflict the conflict
    104      * @exception IllegalStateException thrown, if this collection already includes a
    105      * conflict for conflict.getMy()
    106      */
    107     protected void addConflict(Conflict<?> conflict) throws IllegalStateException {
     104     * @throws IllegalStateException if this collection already includes a conflict for conflict.getMy()
     105     */
     106    protected void addConflict(Conflict<?> conflict) {
    108107        if (hasConflictForMy(conflict.getMy()))
    109108            throw new IllegalStateException(tr("Already registered a conflict for primitive ''{0}''.", conflict.getMy().toString()));
     
    117116     *
    118117     * @param conflict the conflict to add. Must not be null.
    119      * @throws IllegalArgumentException thrown, if conflict is null
    120      * @throws IllegalStateException thrown if this collection already includes a conflict for conflict.getMy()
    121      *
    122      */
    123     public void add(Conflict<?> conflict) throws IllegalStateException {
     118     * @throws IllegalArgumentException if conflict is null
     119     * @throws IllegalStateException if this collection already includes a conflict for conflict.getMy()
     120     */
     121    public void add(Conflict<?> conflict) {
    124122        CheckParameterUtil.ensureParameterNotNull(conflict, "conflict");
    125123        addConflict(conflict);
  • trunk/src/org/openstreetmap/josm/data/imagery/Shape.java

    r7509 r8291  
    2323    private List<Coordinate> coords = new ArrayList<>();
    2424
    25     public Shape(String asString, String separator) throws IllegalArgumentException {
     25    public Shape(String asString, String separator) {
    2626        CheckParameterUtil.ensureParameterNotNull(asString, "asString");
    2727        String[] components = asString.split(separator);
     
    6161    }
    6262
    63     public void addPoint(String sLat, String sLon) throws IllegalArgumentException {
     63    public void addPoint(String sLat, String sLon) {
    6464        CheckParameterUtil.ensureParameterNotNull(sLat, "sLat");
    6565        CheckParameterUtil.ensureParameterNotNull(sLon, "sLon");
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java

    r6897 r8291  
    119119     *
    120120     * @param other the other parameters. Must not be null.
    121      * @throws IllegalArgumentException thrown if other is null
    122      */
    123     public OAuthParameters(OAuthParameters other) throws IllegalArgumentException{
     121     * @throws IllegalArgumentException if other is null
     122     */
     123    public OAuthParameters(OAuthParameters other) {
    124124        CheckParameterUtil.ensureParameterNotNull(other, "other");
    125125        this.consumerKey = other.consumerKey;
     
    226226     * @throws IllegalArgumentException if consumer is null
    227227     */
    228     public OAuthProvider buildProvider(OAuthConsumer consumer) throws IllegalArgumentException {
     228    public OAuthProvider buildProvider(OAuthConsumer consumer) {
    229229        CheckParameterUtil.ensureParameterNotNull(consumer, "consumer");
    230230        return new DefaultOAuthProvider(
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthToken.java

    r6883 r8291  
    3636     *
    3737     * @param other the other token. Must not be null.
    38      * @throws IllegalArgumentException thrown if other is null
     38     * @throws IllegalArgumentException if other is null
    3939     */
    40     public OAuthToken(OAuthToken other) throws IllegalArgumentException {
     40    public OAuthToken(OAuthToken other) {
    4141        CheckParameterUtil.ensureParameterNotNull(other, "other");
    4242        this.key = other.key;
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r8290 r8291  
    187187     * @param id the id. &gt; 0 required
    188188     * @param version the version &gt; 0 required
    189      * @throws IllegalArgumentException thrown if id &lt;= 0
    190      * @throws IllegalArgumentException thrown if version &lt;= 0
    191      * @throws DataIntegrityProblemException If id is changed and primitive was already added to the dataset
     189     * @throws IllegalArgumentException if id &lt;= 0
     190     * @throws IllegalArgumentException if version &lt;= 0
     191     * @throws DataIntegrityProblemException if id is changed and primitive was already added to the dataset
    192192     */
    193193    @Override
     
    258258     *
    259259     * @param changesetId the id. &gt;= 0 required.
    260      * @throws IllegalStateException thrown if this primitive is new.
    261      * @throws IllegalArgumentException thrown if id &lt; 0
    262      */
    263     @Override
    264     public void setChangesetId(int changesetId) throws IllegalStateException, IllegalArgumentException {
     260     * @throws IllegalStateException if this primitive is new.
     261     * @throws IllegalArgumentException if id &lt; 0
     262     */
     263    @Override
     264    public void setChangesetId(int changesetId) {
    265265        if (this.changesetId == changesetId)
    266266            return;
     
    396396     *
    397397     * @see #isVisible()
    398      * @throws IllegalStateException thrown if visible is set to false on an primitive with
    399      * id==0
    400      */
    401     @Override
    402     public void setVisible(boolean visible) throws IllegalStateException{
     398     * @throws IllegalStateException if visible is set to false on an primitive with id==0
     399     */
     400    @Override
     401    public void setVisible(boolean visible) {
    403402        if (isNew() && !visible)
    404403            throw new IllegalStateException(tr("A primitive with ID = 0 cannot be invisible."));
  • trunk/src/org/openstreetmap/josm/data/osm/ChangesetDataSet.java

    r7005 r8291  
    66import java.util.Iterator;
    77import java.util.Map;
     8import java.util.Map.Entry;
    89import java.util.Set;
    9 import java.util.Map.Entry;
    1010
    1111import org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive;
     
    3636     * @param primitive the primitive. Must not be null.
    3737     * @param cmt the modification type. Must not be null.
    38      * @throws IllegalArgumentException thrown if primitive is null
    39      * @throws IllegalArgumentException thrown if cmt is null
     38     * @throws IllegalArgumentException if primitive is null
     39     * @throws IllegalArgumentException if cmt is null
    4040     */
    41     public void put(HistoryOsmPrimitive primitive, ChangesetModificationType cmt) throws IllegalArgumentException{
     41    public void put(HistoryOsmPrimitive primitive, ChangesetModificationType cmt) {
    4242        CheckParameterUtil.ensureParameterNotNull(primitive,"primitive");
    4343        CheckParameterUtil.ensureParameterNotNull(cmt,"cmt");
     
    112112     * @param cmt the modification type. Must not be null.
    113113     * @return the set of primitives
    114      * @throws IllegalArgumentException thrown if cmt is null
     114     * @throws IllegalArgumentException if cmt is null
    115115     */
    116     public Set<HistoryOsmPrimitive> getPrimitivesByModificationType(ChangesetModificationType cmt) throws IllegalArgumentException {
     116    public Set<HistoryOsmPrimitive> getPrimitivesByModificationType(ChangesetModificationType cmt) {
    117117        CheckParameterUtil.ensureParameterNotNull(cmt,"cmt");
    118118        HashSet<HistoryOsmPrimitive> ret = new HashSet<>();
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r7816 r8291  
    936936     * @param type the type of  the primitive. Must not be null.
    937937     * @return the primitive
    938      * @exception NullPointerException thrown, if type is null
     938     * @throws NullPointerException if type is null
    939939     */
    940940    public OsmPrimitive getPrimitiveById(long id, OsmPrimitiveType type) {
  • trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java

    r7005 r8291  
    5252     * @param targetDataSet dataset with my primitives. Must not be null.
    5353     * @param sourceDataSet dataset with their primitives. Ignored, if null.
    54      * @throws IllegalArgumentException thrown if myDataSet is null
    55      */
    56     public DataSetMerger(DataSet targetDataSet, DataSet sourceDataSet) throws IllegalArgumentException {
     54     * @throws IllegalArgumentException if myDataSet is null
     55     */
     56    public DataSetMerger(DataSet targetDataSet, DataSet sourceDataSet) {
    5757        CheckParameterUtil.ensureParameterNotNull(targetDataSet, "targetDataSet");
    5858        this.targetDataSet = targetDataSet;
     
    124124    }
    125125
    126     protected OsmPrimitive getMergeTarget(OsmPrimitive mergeSource) throws IllegalStateException {
     126    protected OsmPrimitive getMergeTarget(OsmPrimitive mergeSource) {
    127127        PrimitiveId targetId = mergedMap.get(mergeSource.getPrimitiveId());
    128128        if (targetId == null)
     
    229229     *
    230230     * @param source the source way
    231      * @throws IllegalStateException thrown if no target way can be found for the source way
    232      * @throws IllegalStateException thrown if there isn't a target node for one of the nodes in the source way
    233      *
    234      */
    235     private void mergeNodeList(Way source) throws IllegalStateException {
     231     * @throws IllegalStateException if no target way can be found for the source way
     232     * @throws IllegalStateException if there isn't a target node for one of the nodes in the source way
     233     *
     234     */
     235    private void mergeNodeList(Way source) {
    236236        Way target = (Way)getMergeTarget(source);
    237237        if (target == null)
     
    256256     * Merges the relation members of a source relation onto the corresponding target relation.
    257257     * @param source the source relation
    258      * @throws IllegalStateException thrown if there is no corresponding target relation
    259      * @throws IllegalStateException thrown if there isn't a corresponding target object for one of the relation
     258     * @throws IllegalStateException if there is no corresponding target relation
     259     * @throws IllegalStateException if there isn't a corresponding target object for one of the relation
    260260     * members in source
    261261     */
    262     private void mergeRelationMembers(Relation source) throws IllegalStateException {
     262    private void mergeRelationMembers(Relation source) {
    263263        Relation target = (Relation) getMergeTarget(source);
    264264        if (target == null)
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r7828 r8291  
    147147     * @throws IllegalArgumentException if id &lt; 0
    148148     */
    149     public Node(long id) throws IllegalArgumentException {
     149    public Node(long id) {
    150150        super(id, false);
    151151    }
     
    157157     * @throws IllegalArgumentException if id &lt; 0
    158158     */
    159     public Node(long id, int version) throws IllegalArgumentException {
     159    public Node(long id, int version) {
    160160        super(id, version, false);
    161161    }
     
    235235     *
    236236     * @param other the other primitive. Must not be null.
    237      * @throws IllegalArgumentException thrown if other is null.
    238      * @throws DataIntegrityProblemException thrown if either this is new and other is not, or other is new and this is not
    239      * @throws DataIntegrityProblemException thrown if other is new and other.getId() != this.getId()
     237     * @throws IllegalArgumentException if other is null.
     238     * @throws DataIntegrityProblemException if either this is new and other is not, or other is new and this is not
     239     * @throws DataIntegrityProblemException if other is new and other.getId() != this.getId()
    240240     */
    241241    @Override
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r7621 r8291  
    247247     * @param id the id
    248248     * @param allowNegativeId
    249      * @throws IllegalArgumentException thrown if id &lt; 0 and allowNegativeId is false
    250      */
    251     protected OsmPrimitive(long id, boolean allowNegativeId) throws IllegalArgumentException {
     249     * @throws IllegalArgumentException if id &lt; 0 and allowNegativeId is false
     250     */
     251    protected OsmPrimitive(long id, boolean allowNegativeId) {
    252252        if (allowNegativeId) {
    253253            this.id = id;
     
    278278     * @param version
    279279     * @param allowNegativeId
    280      * @throws IllegalArgumentException thrown if id &lt; 0 and allowNegativeId is false
    281      */
    282     protected OsmPrimitive(long id, int version, boolean allowNegativeId) throws IllegalArgumentException {
     280     * @throws IllegalArgumentException if id &lt; 0 and allowNegativeId is false
     281     */
     282    protected OsmPrimitive(long id, int version, boolean allowNegativeId) {
    283283        this(id, allowNegativeId);
    284284        this.version = (id > 0 ? version : 0);
     
    358358     * @param id the id. &gt; 0 required
    359359     * @param version the version &gt; 0 required
    360      * @throws IllegalArgumentException thrown if id &lt;= 0
    361      * @throws IllegalArgumentException thrown if version &lt;= 0
    362      * @throws DataIntegrityProblemException If id is changed and primitive was already added to the dataset
     360     * @throws IllegalArgumentException if id &lt;= 0
     361     * @throws IllegalArgumentException if version &lt;= 0
     362     * @throws DataIntegrityProblemException if id is changed and primitive was already added to the dataset
    363363     */
    364364    @Override
     
    411411
    412412    @Override
    413     public void setChangesetId(int changesetId) throws IllegalStateException, IllegalArgumentException {
     413    public void setChangesetId(int changesetId) {
    414414        boolean locked = writeLock();
    415415        try {
     
    543543
    544544    @Override
    545     public void setVisible(boolean visible) throws IllegalStateException {
     545    public void setVisible(boolean visible) {
    546546        boolean locked = writeLock();
    547547        try {
     
    11321132     *
    11331133     * @param other the other primitive. Must not be null.
    1134      * @throws IllegalArgumentException thrown if other is null.
    1135      * @throws DataIntegrityProblemException thrown if either this is new and other is not, or other is new and this is not
    1136      * @throws DataIntegrityProblemException thrown if other isn't new and other.getId() != this.getId()
     1134     * @throws IllegalArgumentException if other is null.
     1135     * @throws DataIntegrityProblemException if either this is new and other is not, or other is new and this is not
     1136     * @throws DataIntegrityProblemException if other isn't new and other.getId() != this.getId()
    11371137     */
    11381138    public void mergeFrom(OsmPrimitive other) {
  • trunk/src/org/openstreetmap/josm/data/osm/Relation.java

    r7796 r8291  
    210210     *
    211211     * @param id the id. &gt; 0 required
    212      * @throws IllegalArgumentException thrown if id &lt; 0
    213      */
    214     public Relation(long id) throws IllegalArgumentException {
     212     * @throws IllegalArgumentException if id &lt; 0
     213     */
     214    public Relation(long id) {
    215215        super(id, false);
    216216    }
  • trunk/src/org/openstreetmap/josm/data/osm/RelationMember.java

    r7864 r8291  
    128128     * @param role Can be null, in this case it's save as ""
    129129     * @param member Cannot be null
    130      * @throws IllegalArgumentException thrown if member is <code>null</code>
     130     * @throws IllegalArgumentException if member is <code>null</code>
    131131     */
    132132    public RelationMember(String role, OsmPrimitive member) {
  • trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java

    r7743 r8291  
    597597     *
    598598     * @param primitive  the primitive
    599      * @throws IllegalStateException thrown if this tag collection can't be applied
     599     * @throws IllegalStateException if this tag collection can't be applied
    600600     * because there are keys with multiple values
    601601     */
    602     public void applyTo(Tagged primitive) throws IllegalStateException {
     602    public void applyTo(Tagged primitive) {
    603603        if (primitive == null) return;
    604604        if (! isApplicableToPrimitive())
     
    617617     * primitives is null
    618618     *
    619      * @param primitives  the collection of primitives
    620      * @throws IllegalStateException thrown if this tag collection can't be applied
     619     * @param primitives the collection of primitives
     620     * @throws IllegalStateException if this tag collection can't be applied
    621621     * because there are keys with multiple values
    622622     */
    623     public void applyTo(Collection<? extends Tagged> primitives) throws IllegalStateException{
     623    public void applyTo(Collection<? extends Tagged> primitives) {
    624624        if (primitives == null) return;
    625625        if (! isApplicableToPrimitive())
     
    635635     *
    636636     * @param primitive  the primitive
    637      * @throws IllegalStateException thrown if this tag collection can't be applied
     637     * @throws IllegalStateException if this tag collection can't be applied
    638638     * because there are keys with multiple values
    639639     */
    640     public void replaceTagsOf(Tagged primitive) throws IllegalStateException {
     640    public void replaceTagsOf(Tagged primitive) {
    641641        if (primitive == null) return;
    642642        if (! isApplicableToPrimitive())
     
    653653     *
    654654     * @param primitives the collection of primitives
    655      * @throws IllegalStateException thrown if this tag collection can't be applied
     655     * @throws IllegalStateException if this tag collection can't be applied
    656656     * because there are keys with multiple values
    657657     */
    658     public void replaceTagsOf(Collection<? extends Tagged> primitives) throws IllegalStateException {
     658    public void replaceTagsOf(Collection<? extends Tagged> primitives) {
    659659        if (primitives == null) return;
    660660        if (! isApplicableToPrimitive())
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r7828 r8291  
    127127     * @param index the position
    128128     * @return  the node at position <code>index</code>
    129      * @exception IndexOutOfBoundsException thrown if <code>index</code> &lt; 0
     129     * @throws IndexOutOfBoundsException if <code>index</code> &lt; 0
    130130     * or <code>index</code> &gt;= {@link #getNodesCount()}
    131131     * @since 1862
     
    262262     * @since 343
    263263     */
    264     public Way(long id) throws IllegalArgumentException {
     264    public Way(long id) {
    265265        super(id, false);
    266266    }
     
    273273     * @since 2620
    274274     */
    275     public Way(long id, int version) throws IllegalArgumentException {
     275    public Way(long id, int version) {
    276276        super(id, version, false);
    277277    }
     
    419419     *
    420420     * @param n the node. Ignored, if null
    421      * @throws IllegalStateException thrown, if this way is marked as incomplete. We can't add a node
     421     * @throws IllegalStateException if this way is marked as incomplete. We can't add a node
    422422     * to an incomplete way
    423423     * @since 1313
    424424     */
    425     public void addNode(Node n) throws IllegalStateException {
     425    public void addNode(Node n) {
    426426        if (n==null) return;
    427427
     
    445445     * @param offs the offset
    446446     * @param n the node. Ignored, if null.
    447      * @throws IllegalStateException thrown, if this way is marked as incomplete. We can't add a node
     447     * @throws IllegalStateException if this way is marked as incomplete. We can't add a node
    448448     * to an incomplete way
    449      * @throws IndexOutOfBoundsException thrown if offs is out of bounds
     449     * @throws IndexOutOfBoundsException if offs is out of bounds
    450450     * @since 1313
    451451     */
    452     public void addNode(int offs, Node n) throws IllegalStateException, IndexOutOfBoundsException {
     452    public void addNode(int offs, Node n) throws IndexOutOfBoundsException {
    453453        if (n==null) return;
    454454
  • trunk/src/org/openstreetmap/josm/data/osm/history/History.java

    r7527 r8291  
    4848     * @param type the primitive type. Must not be null.
    4949     * @param versions a list of versions. Can be null.
    50      * @throws IllegalArgumentException thrown if id &lt;= 0
     50     * @throws IllegalArgumentException if id &lt;= 0
    5151     * @throws IllegalArgumentException if type is null
    52      *
    5352     */
    5453    protected History(long id, OsmPrimitiveType type, List<HistoryOsmPrimitive> versions) {
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryDataSet.java

    r8126 r8291  
    139139     * @return the history. null, if there isn't a history for <code>id</code> and
    140140     * <code>type</code>.
    141      * @throws IllegalArgumentException thrown if id &lt;= 0
    142      * @throws IllegalArgumentException thrown if type is null
    143      */
    144     public History getHistory(long id, OsmPrimitiveType type) throws IllegalArgumentException{
     141     * @throws IllegalArgumentException if id &lt;= 0
     142     * @throws IllegalArgumentException if type is null
     143     */
     144    public History getHistory(long id, OsmPrimitiveType type) {
    145145        if (id <= 0)
    146146            throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0 expected, got {1}", "id", id));
     
    157157     * @return the history for a primitive with id <code>id</code>. null, if no
    158158     * such history exists
    159      * @throws IllegalArgumentException thrown if pid is null
    160      */
    161     public History getHistory(PrimitiveId pid) throws IllegalArgumentException{
     159     * @throws IllegalArgumentException if pid is null
     160     */
     161    public History getHistory(PrimitiveId pid) {
    162162        CheckParameterUtil.ensureParameterNotNull(pid, "pid");
    163163        List<HistoryOsmPrimitive> versions = data.get(pid);
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java

    r6890 r8291  
    3131     * @throws IllegalArgumentException if preconditions are violated
    3232     */
    33     public HistoryNode(long id, long version, boolean visible, User user, long changesetId, Date timestamp, LatLon coords) throws IllegalArgumentException {
     33    public HistoryNode(long id, long version, boolean visible, User user, long changesetId, Date timestamp, LatLon coords) {
    3434        this(id, version, visible, user, changesetId, timestamp, coords, true);
    3535    }
     
    5050     * @since 5440
    5151     */
    52     public HistoryNode(long id, long version, boolean visible, User user, long changesetId, Date timestamp, LatLon coords, boolean checkHistoricParams) throws IllegalArgumentException {
     52    public HistoryNode(long id, long version, boolean visible, User user, long changesetId, Date timestamp, LatLon coords, boolean checkHistoricParams) {
    5353        super(id, version, visible, user, changesetId, timestamp, checkHistoricParams);
    5454        setCoords(coords);
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java

    r7005 r8291  
    5656     * @throws IllegalArgumentException if preconditions are violated
    5757     */
    58     public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp) throws IllegalArgumentException {
     58    public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp) {
    5959        this(id, version, visible, user, changesetId, timestamp, true);
    6060    }
     
    7575     * @since 5440
    7676     */
    77     public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) throws IllegalArgumentException {
     77    public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) {
    7878        ensurePositiveLong(id, "id");
    7979        ensurePositiveLong(version, "version");
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java

    r7005 r8291  
    3535     * @throws IllegalArgumentException if preconditions are violated
    3636     */
    37     public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp) throws IllegalArgumentException {
     37    public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp) {
    3838        super(id, version, visible, user, changesetId, timestamp);
    3939    }
     
    5353     * @since 5440
    5454     */
    55     public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) throws IllegalArgumentException {
     55    public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) {
    5656        super(id, version, visible, user, changesetId, timestamp, checkHistoricParams);
    5757    }
     
    6868     * @param members list of members for this relation
    6969     *
    70      * @throws IllegalArgumentException thrown if preconditions are violated
     70     * @throws IllegalArgumentException if preconditions are violated
    7171     */
    7272    public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp, List<RelationMemberData> members) {
     
    108108     * @param idx the index
    109109     * @return the idx-th member
    110      * @throws IndexOutOfBoundsException thrown, if idx is out of bounds
     110     * @throws IndexOutOfBoundsException if idx is out of bounds
    111111     */
    112112    public RelationMemberData getRelationMember(int idx) throws IndexOutOfBoundsException  {
     
    129129     *
    130130     * @param member the member (must not be null)
    131      * @exception IllegalArgumentException thrown, if member is null
     131     * @throws IllegalArgumentException if member is null
    132132     */
    133     public void addMember(RelationMemberData member) throws IllegalArgumentException {
     133    public void addMember(RelationMemberData member) {
    134134        CheckParameterUtil.ensureParameterNotNull(member, "member");
    135135        members.add(member);
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java

    r7005 r8291  
    3434     * @throws IllegalArgumentException if preconditions are violated
    3535     */
    36     public HistoryWay(long id, long version, boolean visible, User user, long changesetId, Date timestamp) throws IllegalArgumentException {
     36    public HistoryWay(long id, long version, boolean visible, User user, long changesetId, Date timestamp) {
    3737        super(id, version, visible, user, changesetId, timestamp);
    3838    }
     
    5252     * @since 5440
    5353     */
    54     public HistoryWay(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) throws IllegalArgumentException {
     54    public HistoryWay(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) {
    5555        super(id, version, visible, user, changesetId, timestamp, checkHistoricParams);
    5656    }
     
    6868     * @throws IllegalArgumentException if preconditions are violated
    6969     */
    70     public HistoryWay(long id, long version, boolean visible, User user, long changesetId, Date timestamp, List<Long> nodeIdList) throws IllegalArgumentException {
     70    public HistoryWay(long id, long version, boolean visible, User user, long changesetId, Date timestamp, List<Long> nodeIdList) {
    7171        this(id, version, visible, user, changesetId, timestamp);
    7272        CheckParameterUtil.ensureParameterNotNull(nodeIdList, "nodeIdList");
     
    9595     * @param idx the index
    9696     * @return the idx-th node id
    97      * @exception IndexOutOfBoundsException thrown, if  idx &lt; 0 || idx &gt;= {#see {@link #getNumNodes()}
     97     * @throws IndexOutOfBoundsException if  idx &lt; 0 || idx &gt;= {#see {@link #getNumNodes()}
    9898     */
    9999    public long getNodeId(int idx) throws IndexOutOfBoundsException {
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitor.java

    r7005 r8291  
    4242     *
    4343     * @param selectionBase the dataset. Must not be null.
    44      * @exception IllegalArgumentException thrown if selectionBase is null
    45      *
     44     * @throws IllegalArgumentException if selectionBase is null
    4645     */
    47     public MergeSourceBuildingVisitor(DataSet selectionBase) throws IllegalArgumentException {
     46    public MergeSourceBuildingVisitor(DataSet selectionBase) {
    4847        CheckParameterUtil.ensureParameterNotNull(selectionBase, "selectionBase");
    4948        this.selectionBase = selectionBase;
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java

    r7549 r8291  
    6060     * @param isInactiveMode if true, the paint visitor shall render OSM objects such that they
    6161     * look inactive. Example: rendering of data in an inactive layer using light gray as color only.
    62      * @throws IllegalArgumentException thrown if {@code g} is null
    63      * @throws IllegalArgumentException thrown if {@code nc} is null
    64      */
    65     public AbstractMapRenderer(Graphics2D g, NavigatableComponent nc, boolean isInactiveMode) throws IllegalArgumentException{
     62     * @throws IllegalArgumentException if {@code g} is null
     63     * @throws IllegalArgumentException if {@code nc} is null
     64     */
     65    public AbstractMapRenderer(Graphics2D g, NavigatableComponent nc, boolean isInactiveMode) {
    6666        CheckParameterUtil.ensureParameterNotNull(g);
    6767        CheckParameterUtil.ensureParameterNotNull(nc);
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java

    r8126 r8291  
    165165     * @return true, if {@code Renderer} is already a registered map renderer
    166166     * class
    167      * @throws IllegalArgumentException thrown if {@code renderer} is null
    168      */
    169     public boolean isRegistered(Class<? extends AbstractMapRenderer> renderer) throws IllegalArgumentException {
     167     * @throws IllegalArgumentException if {@code renderer} is null
     168     */
     169    public boolean isRegistered(Class<? extends AbstractMapRenderer> renderer) {
    170170        CheckParameterUtil.ensureParameterNotNull(renderer);
    171171        for (Descriptor d: descriptors) {
     
    181181     * @param displayName the display name to be displayed in UIs (i.e. in the preference dialog)
    182182     * @param description the description
    183      * @throws IllegalArgumentException thrown if {@code renderer} is null
    184      * @throws IllegalStateException thrown if {@code renderer} is already registered
    185      */
    186     public void register(Class<? extends AbstractMapRenderer> renderer, String displayName, String description) throws IllegalArgumentException, IllegalStateException{
     183     * @throws IllegalArgumentException if {@code renderer} is null
     184     * @throws IllegalStateException if {@code renderer} is already registered
     185     */
     186    public void register(Class<? extends AbstractMapRenderer> renderer, String displayName, String description) {
    187187        CheckParameterUtil.ensureParameterNotNull(renderer);
    188188        if (isRegistered(renderer))
     
    227227     *
    228228     * @param renderer the map renderer class. Must not be null.
    229      * @throws IllegalArgumentException thrown if {@code renderer} is null
    230      * @throws IllegalStateException thrown if {@code renderer} isn't registered yet
    231      *
    232      */
    233     public void activate(Class<? extends AbstractMapRenderer> renderer) throws IllegalArgumentException, IllegalStateException{
     229     * @throws IllegalArgumentException if {@code renderer} is null
     230     * @throws IllegalStateException if {@code renderer} isn't registered yet
     231     */
     232    public void activate(Class<? extends AbstractMapRenderer> renderer) {
    234233        CheckParameterUtil.ensureParameterNotNull(renderer);
    235234        if (!isRegistered(renderer))
     
    246245     * <p>Activates the default map renderer.</p>
    247246     *
    248      * @throws IllegalStateException thrown if the default renderer {@link StyledMapRenderer} isn't registered
    249      *
    250      */
    251     public void activateDefault() throws IllegalStateException{
     247     * @throws IllegalStateException if the default renderer {@link StyledMapRenderer} isn't registered
     248     */
     249    public void activateDefault() {
    252250        Class<? extends AbstractMapRenderer> defaultRenderer = StyledMapRenderer.class;
    253251        if (!isRegistered(defaultRenderer))
     
    261259     * <p>Creates an instance of the currently active renderer.</p>
    262260     *
    263      * @throws MapRendererFactoryException thrown if creating an instance fails
     261     * @throws MapRendererFactoryException if creating an instance fails
    264262     * @see AbstractMapRenderer#AbstractMapRenderer(Graphics2D, NavigatableComponent, boolean)
    265263     */
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r8285 r8291  
    330330     * @param isInactiveMode if true, the paint visitor shall render OSM objects such that they
    331331     * look inactive. Example: rendering of data in an inactive layer using light gray as color only.
    332      * @throws IllegalArgumentException thrown if {@code g} is null
    333      * @throws IllegalArgumentException thrown if {@code nc} is null
     332     * @throws IllegalArgumentException if {@code g} is null
     333     * @throws IllegalArgumentException if {@code nc} is null
    334334     */
    335335    public StyledMapRenderer(Graphics2D g, NavigatableComponent nc, boolean isInactiveMode) {
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java

    r7555 r8291  
    101101     * @param isInactiveMode if true, the paint visitor shall render OSM objects such that they
    102102     * look inactive. Example: rendering of data in an inactive layer using light gray as color only.
    103      * @throws IllegalArgumentException thrown if {@code g} is null
    104      * @throws IllegalArgumentException thrown if {@code nc} is null
     103     * @throws IllegalArgumentException if {@code g} is null
     104     * @throws IllegalArgumentException if {@code nc} is null
    105105     */
    106106    public WireframeMapRenderer(Graphics2D g, NavigatableComponent nc, boolean isInactiveMode) {
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r8285 r8291  
    624624            public boolean valueBool = false;
    625625
    626             private Pattern getPattern(String str) throws IllegalStateException, PatternSyntaxException {
     626            private Pattern getPattern(String str) throws PatternSyntaxException {
    627627                if (str.endsWith("/i"))
    628628                    return Pattern.compile(str.substring(1,str.length()-2), Pattern.CASE_INSENSITIVE);
     
    632632                throw new IllegalStateException();
    633633            }
    634             public CheckerElement(String exp) throws IllegalStateException, PatternSyntaxException {
     634            public CheckerElement(String exp) throws PatternSyntaxException {
    635635                Matcher m = Pattern.compile("(.+)([!=]=)(.+)").matcher(exp);
    636636                m.matches();
  • trunk/src/org/openstreetmap/josm/data/validation/util/ValUtil.java

    r7005 r8291  
    114114     * @throws IllegalArgumentException if n1 or n2 is {@code null} or without coordinates
    115115     */
    116     public static List<Point2D> getSegmentCells(Node n1, Node n2, double gridDetail) throws IllegalArgumentException {
     116    public static List<Point2D> getSegmentCells(Node n1, Node n2, double gridDetail) {
    117117        CheckParameterUtil.ensureParameterNotNull(n1, "n1");
    118118        CheckParameterUtil.ensureParameterNotNull(n1, "n2");
     
    131131     * @since 6869
    132132     */
    133     public static List<Point2D> getSegmentCells(EastNorth en1, EastNorth en2, double gridDetail) throws IllegalArgumentException {
     133    public static List<Point2D> getSegmentCells(EastNorth en1, EastNorth en2, double gridDetail) {
    134134        CheckParameterUtil.ensureParameterNotNull(en1, "en1");
    135135        CheckParameterUtil.ensureParameterNotNull(en2, "en2");
  • trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java

    r8126 r8291  
    100100     *
    101101     * @param userName the user name. Must not be null. Must not be empty (whitespace only).
    102      * @throws IllegalArgumentException thrown if userName is null
    103      * @throws IllegalArgumentException thrown if userName is empty
    104      */
    105     public void setPartiallyIdentified(String userName) throws IllegalArgumentException {
     102     * @throws IllegalArgumentException if userName is null
     103     * @throws IllegalArgumentException if userName is empty
     104     */
     105    public void setPartiallyIdentified(String userName) {
    106106        CheckParameterUtil.ensureParameterNotNull(userName, "userName");
    107107        if (userName.trim().isEmpty())
     
    117117     * @param username the user name. Must not be null. Must not be empty.
    118118     * @param userinfo additional information about the user, retrieved from the OSM server and including the user id
    119      * @throws IllegalArgumentException thrown if userName is null
    120      * @throws IllegalArgumentException thrown if userName is empty
    121      * @throws IllegalArgumentException thrown if userinfo is null
    122      */
    123     public void setFullyIdentified(String username, UserInfo userinfo) throws IllegalArgumentException {
     119     * @throws IllegalArgumentException if userName is null
     120     * @throws IllegalArgumentException if userName is empty
     121     * @throws IllegalArgumentException if userinfo is null
     122     */
     123    public void setFullyIdentified(String username, UserInfo userinfo) {
    124124        CheckParameterUtil.ensureParameterNotNull(username, "username");
    125125        if (username.trim().isEmpty())
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r8029 r8291  
    701701    /**
    702702     * Set the new dimension to the view.
    703      * 
     703     *
    704704     * @deprecated use #zoomTo(BoundingXYVisitor)
    705705     */
     
    791791     *
    792792     * @param layer the layer to be activate; must be one of the layers in the list of layers
    793      * @exception IllegalArgumentException thrown if layer is not in the lis of layers
     793     * @throws IllegalArgumentException if layer is not in the lis of layers
    794794     */
    795795    public void setActiveLayer(Layer layer) {
  • trunk/src/org/openstreetmap/josm/gui/MenuScroller.java

    r8285 r8291  
    334334     * called when there are no more refrences to it.
    335335     *
    336      * @exception Throwable if an error occurs.
     336     * @throws Throwable if an error occurs.
    337337     * @see MenuScroller#dispose()
    338338     */
  • trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java

    r7980 r8291  
    5858     * exception will be handled by showing a dialog. When this runnable is executed using executor framework
    5959     * then use false unless you read result of task (because exception will get lost if you don't)
    60      * @throws IllegalArgumentException thrown if parent is null
    61      */
    62     public PleaseWaitRunnable(Component parent, String title, boolean ignoreException) throws IllegalArgumentException{
     60     * @throws IllegalArgumentException if parent is null
     61     */
     62    public PleaseWaitRunnable(Component parent, String title, boolean ignoreException) {
    6363        CheckParameterUtil.ensureParameterNotNull(parent, "parent");
    6464        this.title = title;
  • trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java

    r7005 r8291  
    530530        private TileBounds tileBounds = null;
    531531
    532         public TileAddressValidator(JTextComponent tc) throws IllegalArgumentException {
     532        public TileAddressValidator(JTextComponent tc) {
    533533            super(tc);
    534534        }
     
    589589        private int tileIndex;
    590590
    591         public TileCoordinateValidator(JTextComponent tc) throws IllegalArgumentException {
     591        public TileCoordinateValidator(JTextComponent tc) {
    592592            super(tc);
    593593        }
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/ComparePairType.java

    r6222 r8291  
    7878     * @param role one of the two roles in this pair
    7979     * @return the opposite role
    80      * @exception IllegalStateException  if role is not participating in this pair
     80     * @throws IllegalStateException  if role is not participating in this pair
    8181     */
    8282    public ListRole getOppositeRole(ListRole role) {
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMergeModel.java

    r7864 r8291  
    410410     * @param rows the indices
    411411     * @param current the row index before which the nodes are inserted
    412      * @exception IllegalArgumentException thrown, if current &lt; 0 or &gt;= #nodes in list of merged nodes
    413      *
     412     * @throws IllegalArgumentException if current &lt; 0 or &gt;= #nodes in list of merged nodes
    414413     */
    415414    protected void copyBeforeCurrent(ListRole source, int [] rows, int current) {
     
    424423     * @param rows the indices
    425424     * @param current the row index before which the nodes are inserted
    426      * @exception IllegalArgumentException thrown, if current &lt; 0 or &gt;= #nodes in list of merged nodes
    427      *
     425     * @throws IllegalArgumentException if current &lt; 0 or &gt;= #nodes in list of merged nodes
    428426     */
    429427    public void copyMyBeforeCurrent(int [] rows, int current) {
     
    437435     * @param rows the indices
    438436     * @param current the row index before which the nodes are inserted
    439      * @exception IllegalArgumentException thrown, if current &lt; 0 or &gt;= #nodes in list of merged nodes
    440      *
     437     * @throws IllegalArgumentException if current &lt; 0 or &gt;= #nodes in list of merged nodes
    441438     */
    442439    public void copyTheirBeforeCurrent(int [] rows, int current) {
     
    451448     * @param rows the indices
    452449     * @param current the row index after which the nodes are inserted
    453      * @exception IllegalArgumentException thrown, if current &lt; 0 or &gt;= #nodes in list of merged nodes
    454      *
     450     * @throws IllegalArgumentException if current &lt; 0 or &gt;= #nodes in list of merged nodes
    455451     */
    456452    protected void copyAfterCurrent(ListRole source, int [] rows, int current) {
     
    466462     * @param rows the indices
    467463     * @param current the row index after which the nodes are inserted
    468      * @exception IllegalArgumentException thrown, if current &lt; 0 or &gt;= #nodes in list of merged nodes
    469      *
     464     * @throws IllegalArgumentException if current &lt; 0 or &gt;= #nodes in list of merged nodes
    470465     */
    471466    public void copyMyAfterCurrent(int [] rows, int current) {
     
    479474     * @param rows the indices
    480475     * @param current the row index after which the nodes are inserted
    481      * @exception IllegalArgumentException thrown, if current &lt; 0 or &gt;= #nodes in list of merged nodes
    482      *
     476     * @throws IllegalArgumentException if current &lt; 0 or &gt;= #nodes in list of merged nodes
    483477     */
    484478    public void copyTheirAfterCurrent(int [] rows, int current) {
     
    648642         * @return true if the entry at <code>row</code> is equal to the entry at the
    649643         * same position in the opposite list of the current {@link ComparePairType}
    650          * @exception IllegalStateException thrown, if this model is not participating in the
     644         * @throws IllegalStateException if this model is not participating in the
    651645         *   current  {@link ComparePairType}
    652646         * @see ComparePairType#getOppositeRole(ListRole)
     
    672666         * @return true if the entry at the current position is present in the opposite list
    673667         * of the current {@link ComparePairType}.
    674          * @exception IllegalStateException thrown, if this model is not participating in the
    675          *   current  {@link ComparePairType}
     668         * @throws IllegalStateException if this model is not participating in the
     669         *   current {@link ComparePairType}
    676670         * @see ComparePairType#getOppositeRole(ListRole)
    677671         * @see #getRole()
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModel.java

    r7005 r8291  
    2727     * @param their their way (i.e. the way in the server dataset)
    2828     * @param mergedMap The map of merged primitives if the conflict results from merging two layers
    29      * @exception IllegalArgumentException thrown, if my is null
    30      * @exception IllegalArgumentException  thrown, if their is null
     29     * @throws IllegalArgumentException if my is null
     30     * @throws IllegalArgumentException if their is null
    3131     */
    3232    public void populate(Way my, Way their, Map<PrimitiveId, PrimitiveId> mergedMap) {
     
    5454     * @param conflict the conflict data set
    5555     * @return the command
    56      * @exception IllegalStateException thrown, if the merge is not yet frozen
     56     * @throws IllegalStateException if the merge is not yet frozen
    5757     */
    5858    public WayNodesConflictResolverCommand buildResolveCommand(Conflict<? extends OsmPrimitive> conflict) {
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMergeModel.java

    r7005 r8291  
    260260     * @param decision the decision (must not be null)
    261261     *
    262      * @throws IllegalArgumentException thrown, if decision is null
    263      */
    264     public void decideDeletedStateConflict(MergeDecisionType decision) throws IllegalArgumentException{
     262     * @throws IllegalArgumentException if decision is null
     263     */
     264    public void decideDeletedStateConflict(MergeDecisionType decision) {
    265265        CheckParameterUtil.ensureParameterNotNull(decision, "decision");
    266266
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberListMergeModel.java

    r6887 r8291  
    102102     * @param their  their relation. Must not be null
    103103     * @return the command
    104      * @exception IllegalArgumentException thrown, if my is null
    105      * @exception IllegalArgumentException thrown, if their is null
    106      * @exception IllegalStateException thrown, if the merge is not yet frozen
     104     * @throws IllegalArgumentException if my is null
     105     * @throws IllegalArgumentException if their is null
     106     * @throws IllegalStateException if the merge is not yet frozen
    107107     */
    108108    public RelationMemberConflictResolverCommand buildResolveCommand(Relation my, Relation their) {
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeItem.java

    r6265 r8291  
    4444     * @param my  my version of the OSM primitive (i.e. the version known in the local dataset). Must not be null.
    4545     * @param their their version of the OSM primitive (i.e. the version known on the server). Must not be null.
    46      * @throws IllegalArgumentException thrown if key is null
    47      * @throws IllegalArgumentException thrown if my is null
    48      * @throws IllegalArgumentException thrown if their is null
     46     * @throws IllegalArgumentException if key is null
     47     * @throws IllegalArgumentException if my is null
     48     * @throws IllegalArgumentException if their is null
    4949     */
    5050    public TagMergeItem(String key, OsmPrimitive my, OsmPrimitive their) {
     
    6161     *
    6262     * @param decision the merge decision. Must not be null.
    63      * @exception IllegalArgumentException thrown if decision is null
    64      *
     63     * @throws IllegalArgumentException if decision is null
    6564     */
    66     public void decide(MergeDecisionType decision) throws IllegalArgumentException {
     65    public void decide(MergeDecisionType decision) {
    6766        CheckParameterUtil.ensureParameterNotNull(decision, "decision");
    6867        this.mergeDecision = decision;
     
    9190     *
    9291     * @param primitive the OSM primitive. Must not be null.
    93      * @exception IllegalArgumentException thrown, if primitive is null
    94      * @exception IllegalStateException  thrown, if this merge item is undecided
     92     * @throws IllegalArgumentException if primitive is null
     93     * @throws IllegalStateException if this merge item is undecided
    9594     */
    96     public void applyToMyPrimitive(OsmPrimitive primitive) throws IllegalArgumentException, IllegalStateException {
     95    public void applyToMyPrimitive(OsmPrimitive primitive) {
    9796        CheckParameterUtil.ensureParameterNotNull(primitive, "primitive");
    9897        if (mergeDecision == MergeDecisionType.UNDECIDED) {
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java

    r7801 r8291  
    4848     *
    4949     * @param tags the tags. Must not be null.
    50      * @exception IllegalArgumentException  thrown if tags is null
    51      * @exception IllegalArgumentException thrown if there are more than one keys
    52      * @exception IllegalArgumentException thrown if tags is empty
    53      */
    54     public MultiValueResolutionDecision(TagCollection tags) throws IllegalArgumentException {
     50     * @throws IllegalArgumentException if tags is null
     51     * @throws IllegalArgumentException if there are more than one keys
     52     * @throws IllegalArgumentException if tags is empty
     53     */
     54    public MultiValueResolutionDecision(TagCollection tags) {
    5555        CheckParameterUtil.ensureParameterNotNull(tags, "tags");
    5656        if (tags.isEmpty())
     
    104104     *
    105105     * @param value  the value to keep
    106      * @throws IllegalArgumentException thrown if value is null
    107      * @throws IllegalStateException thrown if value is not in the list of known values for this tag
    108      */
    109     public void keepOne(String value) throws IllegalArgumentException, IllegalStateException {
     106     * @throws IllegalArgumentException if value is null
     107     * @throws IllegalStateException if value is not in the list of known values for this tag
     108     */
     109    public void keepOne(String value) {
    110110        CheckParameterUtil.ensureParameterNotNull(value, "value");
    111111        if (!tags.getValues().contains(value))
     
    141141     *
    142142     * @return the chosen value
    143      * @throws IllegalStateException thrown if this resolution is not yet decided
    144      */
    145     public String getChosenValue() throws IllegalStateException {
     143     * @throws IllegalStateException if this resolution is not yet decided
     144     */
     145    public String getChosenValue() {
    146146        switch(type) {
    147147        case UNDECIDED: throw new IllegalStateException(tr("Not decided yet."));
     
    234234     *
    235235     * @param primitive the primitive
    236      * @throws IllegalStateException thrown if this resolution is not resolved yet
     236     * @throws IllegalStateException if this resolution is not resolved yet
    237237     *
    238238     */
     
    253253     *
    254254     * @param primitives the collection of primitives
    255      * @throws IllegalStateException thrown if this resolution is not resolved yet
     255     * @throws IllegalStateException if this resolution is not resolved yet
    256256     */
    257257    public void applyTo(Collection<? extends OsmPrimitive> primitives) {
     
    270270     * @param primitive  the primitive
    271271     * @return the change command
    272      * @throws IllegalArgumentException thrown if primitive is null
    273      * @throws IllegalStateException thrown if this resolution is not resolved yet
     272     * @throws IllegalArgumentException if primitive is null
     273     * @throws IllegalStateException if this resolution is not resolved yet
    274274     */
    275275    public Command buildChangeCommand(OsmPrimitive primitive) {
     
    284284     * Builds a change command for applying this resolution to a collection of primitives
    285285     *
    286      * @param primitives  the collection of primitives
     286     * @param primitives the collection of primitives
    287287     * @return the change command
    288      * @throws IllegalArgumentException thrown if primitives is null
    289      * @throws IllegalStateException thrown if this resolution is not resolved yet
     288     * @throws IllegalArgumentException if primitives is null
     289     * @throws IllegalStateException if this resolution is not resolved yet
    290290     */
    291291    public Command buildChangeCommand(Collection<? extends OsmPrimitive> primitives) {
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecision.java

    r6362 r8291  
    1818    private RelationMemberConflictDecisionType decision;
    1919
    20     public RelationMemberConflictDecision(Relation relation, int pos) throws IllegalArgumentException {
     20    public RelationMemberConflictDecision(Relation relation, int pos) {
    2121        CheckParameterUtil.ensureParameterNotNull(relation, "relation");
    2222        RelationMember member = relation.getMember(pos);
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java

    r7743 r8291  
    127127     * @param tags  the tag collection with the tags. Must not be null.
    128128     * @param keysWithConflicts the set of tag keys with conflicts
    129      * @throws IllegalArgumentException thrown if tags is null
     129     * @throws IllegalArgumentException if tags is null
    130130     */
    131131    public void populate(TagCollection tags, Set<String> keysWithConflicts) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r8285 r8291  
    9797     *
    9898     * @return the instance of the dialog
    99      * @throws IllegalStateException thrown, if the dialog is not created yet
     99     * @throws IllegalStateException if the dialog is not created yet
    100100     * @see #createInstance(MapFrame)
    101101     */
    102     public static LayerListDialog getInstance() throws IllegalStateException {
     102    public static LayerListDialog getInstance() {
    103103        if (instance == null)
    104104            throw new IllegalStateException("Dialog not created yet. Invoke createInstance() first");
     
    535535         *
    536536         * @param layer  the layer. Must not be null.
    537          * @exception IllegalArgumentException thrown, if layer is null
    538          */
    539         public LayerOpacityAction(Layer layer) throws IllegalArgumentException {
     537         * @throws IllegalArgumentException if layer is null
     538         */
     539        public LayerOpacityAction(Layer layer) {
    540540            this();
    541541            putValue(NAME, tr("Opacity"));
     
    756756         * @throws IllegalArgumentException if {@code layer} is null
    757757         */
    758         public MergeAction(Layer layer) throws IllegalArgumentException {
     758        public MergeAction(Layer layer) {
    759759            this();
    760760            CheckParameterUtil.ensureParameterNotNull(layer, "layer");
     
    831831         * @throws IllegalArgumentException if {@code layer} is null
    832832         */
    833         public DuplicateAction(Layer layer) throws IllegalArgumentException {
     833        public DuplicateAction(Layer layer) {
    834834            this();
    835835            CheckParameterUtil.ensureParameterNotNull(layer, "layer");
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentDownloadTask.java

    r7704 r8291  
    6464     *
    6565     * @param changesetId the changeset id. &gt; 0 required.
    66      * @throws IllegalArgumentException thrown if changesetId &lt;= 0
    67      */
    68     public ChangesetContentDownloadTask(int changesetId) throws IllegalArgumentException{
     66     * @throws IllegalArgumentException if changesetId &lt;= 0
     67     */
     68    public ChangesetContentDownloadTask(int changesetId) {
    6969        super(tr("Downloading changeset content"), false /* don't ignore exceptions */);
    7070        if (changesetId <= 0)
     
    8989     * @param parent the parent component for the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}. Must not be {@code null}.
    9090     * @param changesetId the changeset id. {@code >0} required.
    91      * @throws IllegalArgumentException thrown if {@code changesetId <= 0}
    92      * @throws IllegalArgumentException thrown if parent is {@code null}
    93      */
    94     public ChangesetContentDownloadTask(Component parent, int changesetId) throws IllegalArgumentException{
     91     * @throws IllegalArgumentException if {@code changesetId <= 0}
     92     * @throws IllegalArgumentException if parent is {@code null}
     93     */
     94    public ChangesetContentDownloadTask(Component parent, int changesetId) {
    9595        super(parent, tr("Downloading changeset content"), false /* don't ignore exceptions */);
    9696        if (changesetId <= 0)
     
    105105     * @param parent the parent component for the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}. Must not be {@code null}.
    106106     * @param changesetIds the changeset ids. Empty collection assumed, if {@code null}.
    107      * @throws IllegalArgumentException thrown if parent is {@code null}
    108      */
    109     public ChangesetContentDownloadTask(Component parent, Collection<Integer> changesetIds) throws IllegalArgumentException {
     107     * @throws IllegalArgumentException if parent is {@code null}
     108     */
     109    public ChangesetContentDownloadTask(Component parent, Collection<Integer> changesetIds) {
    110110        super(parent, tr("Downloading changeset content"), false /* don't ignore exceptions */);
    111111        init(changesetIds);
     
    129129     *
    130130     * @param changesetId the changeset id
    131      * @throws OsmTransferException thrown if something went wrong
     131     * @throws OsmTransferException if something went wrong
    132132     */
    133133    protected void downloadChangeset(int changesetId) throws OsmTransferException {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetHeaderDownloadTask.java

    r7704 r8291  
    5757     * @param changesets the collection of changesets. Assumes an empty collection if null.
    5858     * @return the download task
    59      * @throws IllegalArgumentException thrown if parent is null
     59     * @throws IllegalArgumentException if parent is null
    6060     */
    6161    public static ChangesetHeaderDownloadTask buildTaskForChangesets(Component parent, Collection<Changeset> changesets) {
     
    124124     * @param dialogParent the parent reference component for the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}. Must not be null.
    125125     * @param ids the collection of ids. Empty collection assumed if null.
    126      * @throws IllegalArgumentException thrown if dialogParent is null
    127      */
    128     public ChangesetHeaderDownloadTask(Component dialogParent, Collection<Integer> ids) throws IllegalArgumentException{
     126     * @throws IllegalArgumentException if dialogParent is null
     127     */
     128    public ChangesetHeaderDownloadTask(Component dialogParent, Collection<Integer> ids) {
    129129        this(dialogParent, ids, false);
    130130    }
     
    139139     * @param ids the collection of ids. Empty collection assumed if null.
    140140     * @param includeDiscussion determines if discussion comments must be downloaded or not
    141      * @throws IllegalArgumentException thrown if dialogParent is null
     141     * @throws IllegalArgumentException if dialogParent is null
    142142     * @since 7704
    143143     */
    144     public ChangesetHeaderDownloadTask(Component dialogParent, Collection<Integer> ids, boolean includeDiscussion)
    145             throws IllegalArgumentException {
     144    public ChangesetHeaderDownloadTask(Component dialogParent, Collection<Integer> ids, boolean includeDiscussion) {
    146145        super(dialogParent, tr("Download changesets"), false /* don't ignore exceptions */);
    147146        init(ids);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java

    r7299 r8291  
    514514         *
    515515         * @param query the query. Must not be null.
    516          * @throws IllegalArgumentException thrown if query is null
    517          * @throws IllegalStateException thrown if one of the available values for query parameters in
     516         * @throws IllegalArgumentException if query is null
     517         * @throws IllegalStateException if one of the available values for query parameters in
    518518         * this panel isn't valid
    519          *
    520519         */
    521         public void fillInQuery(ChangesetQuery query) throws IllegalStateException, IllegalArgumentException  {
     520        public void fillInQuery(ChangesetQuery query) {
    522521            CheckParameterUtil.ensureParameterNotNull(query, "query");
    523522            if (rbRestrictToMyself.isSelected()) {
     
    838837        }
    839838
    840         public void fillInQuery(ChangesetQuery query) throws IllegalStateException{
     839        public void fillInQuery(ChangesetQuery query) {
    841840            if (!isValidChangesetQuery())
    842841                throw new IllegalStateException(tr("Cannot build changeset query with time based restrictions. Input is not valid."));
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryTask.java

    r7005 r8291  
    5454     *
    5555     * @param query the query to submit to the OSM server. Must not be null.
    56      * @throws IllegalArgumentException thrown if query is null.
     56     * @throws IllegalArgumentException if query is null.
    5757     */
    58     public ChangesetQueryTask(ChangesetQuery query) throws IllegalArgumentException {
     58    public ChangesetQueryTask(ChangesetQuery query) {
    5959        super(tr("Querying and downloading changesets",false /* don't ignore exceptions */));
    6060        CheckParameterUtil.ensureParameterNotNull(query, "query");
     
    6868     * Must not be null.
    6969     * @param query the query to submit to the OSM server. Must not be null.
    70      * @throws IllegalArgumentException thrown if query is null.
    71      * @throws IllegalArgumentException thrown if parent is null
     70     * @throws IllegalArgumentException if query is null.
     71     * @throws IllegalArgumentException if parent is null
    7272     */
    73     public ChangesetQueryTask(Component parent, ChangesetQuery query) throws IllegalArgumentException {
     73    public ChangesetQueryTask(Component parent, ChangesetQuery query) {
    7474        super(parent, tr("Querying and downloading changesets"), false /* don't ignore exceptions */);
    7575        CheckParameterUtil.ensureParameterNotNull(query, "query");
     
    144144     * Tries to fully identify the current JOSM user
    145145     *
    146      * @throws OsmTransferException thrown if something went wrong
     146     * @throws OsmTransferException if something went wrong
    147147     */
    148148    protected void fullyIdentifyCurrentUser() throws OsmTransferException {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java

    r7092 r8291  
    114114     *
    115115     * @param layer the {@link OsmDataLayer} this browser is related to. Must not be null.
    116      * @exception IllegalArgumentException thrown, if layer is null
    117      */
    118     public ChildRelationBrowser(OsmDataLayer layer) throws IllegalArgumentException {
     116     * @throws IllegalArgumentException if layer is null
     117     */
     118    public ChildRelationBrowser(OsmDataLayer layer) {
    119119        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    120120        this.layer = layer;
     
    128128     * @param layer the {@link OsmDataLayer} this browser is related to. Must not be null.
    129129     * @param root the root relation
    130      * @exception IllegalArgumentException thrown, if layer is null
    131      */
    132     public ChildRelationBrowser(OsmDataLayer layer, Relation root) throws IllegalArgumentException {
     130     * @throws IllegalArgumentException if layer is null
     131     */
     132    public ChildRelationBrowser(OsmDataLayer layer, Relation root) {
    133133        this(layer);
    134134        populate(root);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/DownloadRelationTask.java

    r6248 r8291  
    3939     * @param relations a collection of relations. Must not be null.
    4040     * @param layer the layer which data is to be merged into
    41      * @throws IllegalArgumentException thrown if relations is null
    42      * @throws IllegalArgumentException thrown if layer is null
     41     * @throws IllegalArgumentException if relations is null
     42     * @throws IllegalArgumentException if layer is null
    4343     */
    44     public DownloadRelationTask(Collection<Relation> relations, OsmDataLayer layer) throws IllegalArgumentException{
     44    public DownloadRelationTask(Collection<Relation> relations, OsmDataLayer layer) {
    4545        super(tr("Download relations"), false /* don't ignore exception */);
    4646        CheckParameterUtil.ensureParameterNotNull(relations, "relations");
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

    r7801 r8291  
    748748     * @throws IllegalArgumentException if orig is null
    749749     */
    750     public static Command addPrimitivesToRelation(final Relation orig, Collection<? extends OsmPrimitive> primitivesToAdd)
    751             throws IllegalArgumentException {
     750    public static Command addPrimitivesToRelation(final Relation orig, Collection<? extends OsmPrimitive> primitivesToAdd) {
    752751        CheckParameterUtil.ensureParameterNotNull(orig, "orig");
    753752        try {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ParentRelationLoadingTask.java

    r7575 r8291  
    6969     * @param monitor the progress monitor to be used
    7070     *
    71      * @exception IllegalArgumentException thrown if child is null
    72      * @exception IllegalArgumentException thrown if layer is null
    73      * @exception IllegalArgumentException thrown if child.getId() == 0
     71     * @throws IllegalArgumentException if child is null
     72     * @throws IllegalArgumentException if layer is null
     73     * @throws IllegalArgumentException if child.getId() == 0
    7474     */
    7575    public ParentRelationLoadingTask(Relation child, OsmDataLayer layer, boolean full, PleaseWaitProgressMonitor monitor ) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java

    r7005 r8291  
    112112     * @param selectedMembers  a collection of members in <code>relation</code> which the editor
    113113     * should display selected when the editor is first displayed on screen
    114      * @throws IllegalArgumentException thrown if layer is null
    115      */
    116     protected RelationEditor(OsmDataLayer layer, Relation relation, Collection<RelationMember> selectedMembers)  throws IllegalArgumentException{
    117         // Initalizes ExtendedDialog
     114     * @throws IllegalArgumentException if layer is null
     115     */
     116    protected RelationEditor(OsmDataLayer layer, Relation relation, Collection<RelationMember> selectedMembers) {
    118117        super(Main.parent,
    119118                "",
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/SelectionTableModel.java

    r7005 r8291  
    2626     *
    2727     * @param layer  the data layer. Must not be null.
    28      * @exception IllegalArgumentException thrown if layer is null
     28     * @throws IllegalArgumentException if layer is null
    2929     */
    30     public SelectionTableModel(OsmDataLayer layer) throws IllegalArgumentException {
     30    public SelectionTableModel(OsmDataLayer layer) {
    3131        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    3232        this.layer = layer;
  • trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java

    r7027 r8291  
    3939         * Constructs a new {@code Bookmark} with the given contents.
    4040         * @param list Bookmark contents as a list of 5 elements. First item is the name, then come bounds arguments (minlat, minlon, maxlat, maxlon)
    41          * @throws NumberFormatException If the bounds arguments are not numbers
    42          * @throws IllegalArgumentException If list contain less than 5 elements
     41         * @throws NumberFormatException if the bounds arguments are not numbers
     42         * @throws IllegalArgumentException if list contain less than 5 elements
    4343         */
    4444        public Bookmark(Collection<String> list) throws NumberFormatException, IllegalArgumentException {
  • trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java

    r7082 r8291  
    3939     * @param helpTopicUrl  the absolute help topic URL
    4040     * @return the content, filtered and transformed for being displayed in the internal help browser
    41      * @throws HelpContentReaderException thrown if problem occurs
    42      * @throws MissingHelpContentException thrown if this helpTopicUrl doesn't point to an existing Wiki help page
     41     * @throws HelpContentReaderException if problem occurs
     42     * @throws MissingHelpContentException if this helpTopicUrl doesn't point to an existing Wiki help page
    4343     */
    4444    public String fetchHelpTopicContent(String helpTopicUrl, boolean dotest) throws HelpContentReaderException {
     
    7777     * @param in the input stream
    7878     * @return the content
    79      * @throws HelpContentReaderException thrown if an exception occurs
    80      * @throws MissingHelpContentException thrown, if the content read isn't a help page
     79     * @throws HelpContentReaderException if an exception occurs
     80     * @throws MissingHelpContentException if the content read isn't a help page
    8181     * @since 5936
    8282     */
  • trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java

    r6883 r8291  
    102102     *
    103103     * @param model the model. Must not be null.
    104      * @throws IllegalArgumentException thrown if model is null
     104     * @throws IllegalArgumentException if model is null
    105105     */
    106     public CoordinateInfoViewer(HistoryBrowserModel model) throws IllegalArgumentException{
     106    public CoordinateInfoViewer(HistoryBrowserModel model) {
    107107        CheckParameterUtil.ensureParameterNotNull(model, "model");
    108108        setModel(model);
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

    r8219 r8291  
    115115     *
    116116     * @param history the history. Must not be null.
    117      * @throws IllegalArgumentException thrown if history is null
     117     * @throws IllegalArgumentException if history is null
    118118     */
    119119    public HistoryBrowserModel(History history) {
     
    247247     * @param pointInTimeType the type of the point in time (must not be null)
    248248     * @return the tag table model
    249      * @exception IllegalArgumentException thrown, if pointInTimeType is null
    250      */
    251     public TagTableModel getTagTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException {
     249     * @throws IllegalArgumentException if pointInTimeType is null
     250     */
     251    public TagTableModel getTagTableModel(PointInTimeType pointInTimeType) {
    252252        CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType");
    253253        if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
     
    260260    }
    261261
    262     public DiffTableModel getNodeListTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException {
     262    public DiffTableModel getNodeListTableModel(PointInTimeType pointInTimeType) {
    263263        CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType");
    264264        if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
     
    271271    }
    272272
    273     public DiffTableModel getRelationMemberTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException {
     273    public DiffTableModel getRelationMemberTableModel(PointInTimeType pointInTimeType) {
    274274        CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType");
    275275        if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
     
    287287     *
    288288     * @param reference the reference history primitive. Must not be null.
    289      * @throws IllegalArgumentException thrown if reference is null
    290      * @throws IllegalStateException thrown if this model isn't a assigned a history yet
     289     * @throws IllegalArgumentException if reference is null
     290     * @throws IllegalStateException if this model isn't a assigned a history yet
    291291     * @throws IllegalArgumentException if reference isn't an history primitive for the history managed by this mode
    292292     *
     
    294294     * @see PointInTimeType
    295295     */
    296     public void setReferencePointInTime(HistoryOsmPrimitive reference) throws IllegalArgumentException, IllegalStateException{
     296    public void setReferencePointInTime(HistoryOsmPrimitive reference) {
    297297        CheckParameterUtil.ensureParameterNotNull(reference, "reference");
    298298        if (history == null)
     
    317317     *
    318318     * @param current the reference history primitive. Must not be {@code null}.
    319      * @throws IllegalArgumentException thrown if reference is {@code null}
    320      * @throws IllegalStateException thrown if this model isn't a assigned a history yet
     319     * @throws IllegalArgumentException if reference is {@code null}
     320     * @throws IllegalStateException if this model isn't a assigned a history yet
    321321     * @throws IllegalArgumentException if reference isn't an history primitive for the history managed by this mode
    322322     *
     
    324324     * @see PointInTimeType
    325325     */
    326     public void setCurrentPointInTime(HistoryOsmPrimitive current) throws IllegalArgumentException, IllegalStateException{
     326    public void setCurrentPointInTime(HistoryOsmPrimitive current) {
    327327        CheckParameterUtil.ensureParameterNotNull(current, "current");
    328328        if (history == null)
     
    364364     * @param type the type of the point in time (must not be null)
    365365     * @return the respective primitive. Can be null.
    366      * @exception IllegalArgumentException thrown, if type is null
    367      */
    368     public HistoryOsmPrimitive getPointInTime(PointInTimeType type) throws IllegalArgumentException {
     366     * @throws IllegalArgumentException if type is null
     367     */
     368    public HistoryOsmPrimitive getPointInTime(PointInTimeType type) {
    369369        CheckParameterUtil.ensureParameterNotNull(type, "type");
    370370        if (type.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java

    r7005 r8291  
    7070     * parent for {@link org.openstreetmap.josm.gui.PleaseWaitDialog}.
    7171     * Must not be <code>null</code>.
    72      * @throws IllegalArgumentException thrown if parent is <code>null</code>
     72     * @throws IllegalArgumentException if parent is <code>null</code>
    7373     */
    7474    public HistoryLoadTask(Component parent) {
     
    8585     * @return this task
    8686     */
    87     public HistoryLoadTask add(long id, OsmPrimitiveType type) throws IllegalArgumentException {
     87    public HistoryLoadTask add(long id, OsmPrimitiveType type) {
    8888        if (id <= 0)
    8989            throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0 expected. Got {1}.", "id", id));
     
    111111     * @param primitive the history item
    112112     * @return this task
    113      * @throws IllegalArgumentException thrown if primitive is null
     113     * @throws IllegalArgumentException if primitive is null
    114114     */
    115115    public HistoryLoadTask add(HistoryOsmPrimitive primitive) {
     
    124124     * @param history the history. Must not be null.
    125125     * @return this task
    126      * @throws IllegalArgumentException thrown if history is null
     126     * @throws IllegalArgumentException if history is null
    127127     */
    128128    public HistoryLoadTask add(History history) {
     
    137137     * @param primitive the OSM primitive. Must not be null. primitive.getId() &gt; 0 required.
    138138     * @return this task
    139      * @throws IllegalArgumentException thrown if the primitive is null
    140      * @throws IllegalArgumentException thrown if primitive.getId() &lt;= 0
     139     * @throws IllegalArgumentException if the primitive is null
     140     * @throws IllegalArgumentException if primitive.getId() &lt;= 0
    141141     */
    142142    public HistoryLoadTask add(OsmPrimitive primitive) {
     
    152152     * <code>primitive.getId() &gt; 0</code> required.
    153153     * @return this task
    154      * @throws IllegalArgumentException thrown if primitives is <code>null</code>
    155      * @throws IllegalArgumentException thrown if one of the ids in the collection &lt;= 0
     154     * @throws IllegalArgumentException if primitives is <code>null</code>
     155     * @throws IllegalArgumentException if one of the ids in the collection &lt;= 0
    156156     */
    157157    public HistoryLoadTask add(Collection<? extends OsmPrimitive> primitives) {
  • trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java

    r8254 r8291  
    172172     * @param model  the model (must not be null)
    173173     * @param pointInTimeType the point in time this panel visualizes (must not be null)
    174      * @exception IllegalArgumentException thrown, if model is null
    175      * @exception IllegalArgumentException thrown, if pointInTimeType is null
    176      *
     174     * @throws IllegalArgumentException if model is null
     175     * @throws IllegalArgumentException if pointInTimeType is null
    177176     */
    178     public VersionInfoPanel(HistoryBrowserModel model, PointInTimeType pointInTimeType) throws IllegalArgumentException {
     177    public VersionInfoPanel(HistoryBrowserModel model, PointInTimeType pointInTimeType) {
    179178        CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType");
    180179        CheckParameterUtil.ensureParameterNotNull(model, "model");
  • trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java

    r8285 r8291  
    109109     * @param changesetCommentModel the model for the changeset comment. Must not be null
    110110     * @param changesetSourceModel the model for the changeset source. Must not be null.
    111      * @throws IllegalArgumentException thrown if {@code changesetCommentModel} is null
     111     * @throws IllegalArgumentException if {@code changesetCommentModel} is null
    112112     */
    113113    public BasicUploadSettingsPanel(ChangesetCommentModel changesetCommentModel, ChangesetCommentModel changesetSourceModel) {
  • trunk/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java

    r7017 r8291  
    162162     *
    163163     * @param changesetCommentModel the changeset comment model. Must not be null.
    164      * @throws IllegalArgumentException thrown if {@code changesetCommentModel} is null
     164     * @throws IllegalArgumentException if {@code changesetCommentModel} is null
    165165     */
    166166    public ChangesetManagementPanel(ChangesetCommentModel changesetCommentModel) {
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesTask.java

    r7432 r8291  
    5454     * @param fullRelation true if a full download is required, i.e.,
    5555     * a download including the immediate children of a relation.
    56      * @throws IllegalArgumentException thrown if layer is null.
     56     * @throws IllegalArgumentException if layer is null.
    5757     */
    58     public DownloadPrimitivesTask(OsmDataLayer layer, List<PrimitiveId> ids, boolean fullRelation) throws IllegalArgumentException {
     58    public DownloadPrimitivesTask(OsmDataLayer layer, List<PrimitiveId> ids, boolean fullRelation) {
    5959        this(layer, ids, fullRelation, null);
    6060    }
     
    6969     *     a download including the immediate children of a relation.
    7070     * @param progressMonitor ProgressMonitor to use or null to create a new one.
    71      * @throws IllegalArgumentException thrown if layer is null.
     71     * @throws IllegalArgumentException if layer is null.
    7272     */
    7373    public DownloadPrimitivesTask(OsmDataLayer layer, List<PrimitiveId> ids, boolean fullRelation,
    74             ProgressMonitor progressMonitor) throws IllegalArgumentException {
     74            ProgressMonitor progressMonitor) {
    7575        super(tr("Download objects"), progressMonitor, false /* don't ignore exception */);
    7676        ensureParameterNotNull(layer, "layer");
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java

    r7402 r8291  
    2626     * Constructs a new {@code SaveLayerInfo}.
    2727     * @param layer the layer. Must not be null.
    28      * @throws IllegalArgumentException thrown if layer is null
     28     * @throws IllegalArgumentException if layer is null
    2929     */
    3030    public SaveLayerInfo(AbstractModifiableLayer layer) {
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayerTask.java

    r7402 r8291  
    3434     * @param layerInfo information about the layer to be saved to save. Must not be null.
    3535     * @param monitor the monitor. Set to {@link NullProgressMonitor#INSTANCE} if null
    36      * @throws IllegalArgumentException thrown if layer is null
     36     * @throws IllegalArgumentException if layer is null
    3737     */
    3838    protected SaveLayerTask(SaveLayerInfo layerInfo, ProgressMonitor monitor) {
  • trunk/src/org/openstreetmap/josm/gui/io/TagSettingsPanel.java

    r7005 r8291  
    3939     * @param changesetCommentModel the changeset comment model. Must not be null.
    4040     * @param changesetSourceModel the changeset source model. Must not be null.
    41      * @throws IllegalArgumentException thrown if {@code changesetCommentModel} is null
     41     * @throws IllegalArgumentException if {@code changesetCommentModel} is null
    4242     */
    43     public TagSettingsPanel(ChangesetCommentModel changesetCommentModel, ChangesetCommentModel changesetSourceModel) throws IllegalArgumentException{
     43    public TagSettingsPanel(ChangesetCommentModel changesetCommentModel, ChangesetCommentModel changesetSourceModel) {
    4444        CheckParameterUtil.ensureParameterNotNull(changesetCommentModel, "changesetCommentModel");
    4545        CheckParameterUtil.ensureParameterNotNull(changesetSourceModel, "changesetSourceModel");
  • trunk/src/org/openstreetmap/josm/gui/io/UpdatePrimitivesTask.java

    r6142 r8291  
    4545     * @param toUpdate a collection of primitives to update from the server. Set to
    4646     * the empty collection if null.
    47      * @throws IllegalArgumentException thrown if layer is null.
     47     * @throws IllegalArgumentException if layer is null.
    4848     */
    49     public UpdatePrimitivesTask(OsmDataLayer layer, Collection<? extends OsmPrimitive> toUpdate) throws IllegalArgumentException{
     49    public UpdatePrimitivesTask(OsmDataLayer layer, Collection<? extends OsmPrimitive> toUpdate) {
    5050        super(tr("Update objects"), false /* don't ignore exception */);
    5151        ensureParameterNotNull(layer, "layer");
  • trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java

    r7358 r8291  
    5656     * @param monitor  a progress monitor. If monitor is null, uses {@link NullProgressMonitor#INSTANCE}
    5757     * @param changeset the changeset to be used
    58      * @throws IllegalArgumentException thrown, if layer is null
    59      * @throws IllegalArgumentException thrown if strategy is null
     58     * @throws IllegalArgumentException if layer is null
     59     * @throws IllegalArgumentException if strategy is null
    6060     */
    6161    public UploadLayerTask(UploadStrategySpecification strategy, OsmDataLayer layer, ProgressMonitor monitor, Changeset changeset) {
     
    8686     * @param e the exception throw by the API
    8787     * @param monitor a progress monitor
    88      * @throws OsmTransferException  thrown if we can't recover from the exception
     88     * @throws OsmTransferException if we can't recover from the exception
    8989     */
    9090    protected void recoverFromGoneOnServer(OsmApiPrimitiveGoneException e, ProgressMonitor monitor) throws OsmTransferException{
  • trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java

    r7025 r8291  
    6060     * @param changeset the changeset to use for uploading. Must not be null. changeset.getId()
    6161     * can be 0 in which case the upload task creates a new changeset
    62      * @throws IllegalArgumentException thrown if layer is null
    63      * @throws IllegalArgumentException thrown if toUpload is null
    64      * @throws IllegalArgumentException thrown if strategy is null
    65      * @throws IllegalArgumentException thrown if changeset is null
     62     * @throws IllegalArgumentException if layer is null
     63     * @throws IllegalArgumentException if toUpload is null
     64     * @throws IllegalArgumentException if strategy is null
     65     * @throws IllegalArgumentException if changeset is null
    6666     */
    6767    public UploadPrimitivesTask(UploadStrategySpecification strategy, OsmDataLayer layer, APIDataSet toUpload, Changeset changeset) {
     
    184184     * @param e the exception throw by the API
    185185     * @param monitor a progress monitor
    186      * @throws OsmTransferException  thrown if we can't recover from the exception
     186     * @throws OsmTransferException if we can't recover from the exception
    187187     */
    188188    protected void recoverFromGoneOnServer(OsmApiPrimitiveGoneException e, ProgressMonitor monitor) throws OsmTransferException{
  • trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java

    r8288 r8291  
    334334     * @throws IllegalArgumentException
    335335     */
    336     public static TileSource getTileSource(ImageryInfo info) throws IllegalArgumentException {
     336    public static TileSource getTileSource(ImageryInfo info) {
    337337        if (info.getImageryType() == ImageryType.TMS) {
    338338            checkUrl(info.getUrl());
  • trunk/src/org/openstreetmap/josm/gui/mappaint/Environment.java

    r8206 r8291  
    6565     * @throws IllegalArgumentException if {@code param} is {@code null}
    6666     */
    67     public Environment(Environment other) throws IllegalArgumentException {
     67    public Environment(Environment other) {
    6868        CheckParameterUtil.ensureParameterNotNull(other);
    6969        this.osm = other.osm;
  • trunk/src/org/openstreetmap/josm/gui/mappaint/TextElement.java

    r8087 r8291  
    113113     * @return the text element or null, if the style properties don't include
    114114     * properties for text rendering
    115      * @throws IllegalArgumentException thrown if {@code defaultTextColor} is null
    116      */
    117     public static TextElement create(Environment env, Color defaultTextColor, boolean defaultAnnotate)  throws IllegalArgumentException{
     115     * @throws IllegalArgumentException if {@code defaultTextColor} is null
     116     */
     117    public static TextElement create(Environment env, Color defaultTextColor, boolean defaultAnnotate) {
    118118        CheckParameterUtil.ensureParameterNotNull(defaultTextColor);
    119119        Cascade c = env.mc.getCascade(env.layer);
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r8141 r8291  
    228228     *
    229229     * @param css the MapCSS style declaration. Must not be null.
    230      * @throws IllegalArgumentException thrown if {@code css} is null
     230     * @throws IllegalArgumentException if {@code css} is null
    231231     */
    232     public MapCSSStyleSource(String css) throws IllegalArgumentException{
     232    public MapCSSStyleSource(String css) {
    233233        super(null, null, null);
    234234        CheckParameterUtil.ensureParameterNotNull(css);
  • trunk/src/org/openstreetmap/josm/gui/oauth/AbstractAuthorizationUI.java

    r6883 r8291  
    125125     *
    126126     * @param pref the preferences. Must not be null.
    127      * @throws IllegalArgumentException thrown if pref is null
     127     * @throws IllegalArgumentException if pref is null
    128128     */
    129     public void initFromPreferences(Preferences pref) throws IllegalArgumentException{
     129    public void initFromPreferences(Preferences pref) {
    130130        CheckParameterUtil.ensureParameterNotNull(pref, "pref");
    131131        pnlAdvancedProperties.initFromPreferences(pref);
  • trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java

    r6890 r8291  
    206206     *
    207207     * @param parameters the advanced parameters. Must not be null.
    208      * @throws IllegalArgumentException thrown if parameters is null.
    209      */
    210     public void setAdvancedParameters(OAuthParameters parameters) throws IllegalArgumentException{
     208     * @throws IllegalArgumentException if parameters is null.
     209     */
     210    public void setAdvancedParameters(OAuthParameters parameters) {
    211211        CheckParameterUtil.ensureParameterNotNull(parameters, "parameters");
    212212        if (parameters.equals(OAuthParameters.createDefault(apiUrl))) {
     
    235235     *
    236236     * @param pref the preferences. Must not be null.
    237      * @throws IllegalArgumentException thrown if pref is null
    238      */
    239     public void initFromPreferences(Preferences pref) throws IllegalArgumentException {
     237     * @throws IllegalArgumentException if pref is null
     238     */
     239    public void initFromPreferences(Preferences pref) {
    240240        CheckParameterUtil.ensureParameterNotNull(pref, "pref");
    241241        setApiUrl(pref.get("osm-server.url"));
     
    260260     *
    261261     * @param pref the preferences. Must not be null.
    262      * @throws IllegalArgumentException thrown if pref is null.
    263      */
    264     public void rememberPreferences(Preferences pref) throws IllegalArgumentException  {
     262     * @throws IllegalArgumentException if pref is null.
     263     */
     264    public void rememberPreferences(Preferences pref) {
    265265        CheckParameterUtil.ensureParameterNotNull(pref, "pref");
    266266        pref.put("oauth.settings.use-default", cbUseDefaults.isSelected());
  • trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java

    r6890 r8291  
    2929import org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator;
    3030import org.openstreetmap.josm.gui.widgets.HtmlPanel;
     31import org.openstreetmap.josm.gui.widgets.JosmTextField;
    3132import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator;
    3233import org.openstreetmap.josm.tools.ImageProvider;
    33 import org.openstreetmap.josm.gui.widgets.JosmTextField;
    3434
    3535/**
     
    177177    private static class AccessTokenKeyValidator extends AbstractTextComponentValidator {
    178178
    179         public AccessTokenKeyValidator(JTextComponent tc) throws IllegalArgumentException {
     179        public AccessTokenKeyValidator(JTextComponent tc) {
    180180            super(tc);
    181181        }
     
    197197
    198198    private static class AccessTokenSecretValidator extends AbstractTextComponentValidator {
    199         public AccessTokenSecretValidator(JTextComponent tc) throws IllegalArgumentException {
     199        public AccessTokenSecretValidator(JTextComponent tc) {
    200200            super(tc);
    201201        }
  • trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java

    r6890 r8291  
    206206     *
    207207     * @param apiUrl the API URL. Must not be null.
    208      * @throws IllegalArgumentException thrown if apiUrl is null
    209      */
    210     public OAuthAuthorizationWizard(String apiUrl) throws IllegalArgumentException {
     208     * @throws IllegalArgumentException if apiUrl is null
     209     */
     210    public OAuthAuthorizationWizard(String apiUrl) {
    211211        this(Main.parent, apiUrl);
    212212    }
     
    217217     * @param parent the component relative to which the dialog is displayed
    218218     * @param apiUrl the API URL. Must not be null.
    219      * @throws IllegalArgumentException thrown if apiUrl is null
     219     * @throws IllegalArgumentException if apiUrl is null
    220220     */
    221221    public OAuthAuthorizationWizard(Component parent, String apiUrl) {
  • trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java

    r8285 r8291  
    7373     * @throws IllegalArgumentException if parameters is null
    7474     */
    75     public OsmOAuthAuthorizationClient(OAuthParameters parameters) throws IllegalArgumentException {
     75    public OsmOAuthAuthorizationClient(OAuthParameters parameters) {
    7676        CheckParameterUtil.ensureParameterNotNull(parameters, "parameters");
    7777        oauthProviderParameters = new OAuthParameters(parameters);
     
    8989     * @throws IllegalArgumentException if requestToken is null
    9090     */
    91     public OsmOAuthAuthorizationClient(OAuthParameters parameters, OAuthToken requestToken) throws IllegalArgumentException {
     91    public OsmOAuthAuthorizationClient(OAuthParameters parameters, OAuthToken requestToken) {
    9292        CheckParameterUtil.ensureParameterNotNull(parameters, "parameters");
    9393        oauthProviderParameters = new OAuthParameters(parameters);
     
    510510     * @throws OsmTransferCanceledException if the task is canceled by the user
    511511     */
    512     public void authorise(OAuthToken requestToken, String osmUserName, String osmPassword, OsmPrivileges privileges, ProgressMonitor monitor) throws IllegalArgumentException, OsmOAuthAuthorizationException, OsmTransferCanceledException{
     512    public void authorise(OAuthToken requestToken, String osmUserName, String osmPassword, OsmPrivileges privileges, ProgressMonitor monitor) throws OsmOAuthAuthorizationException, OsmTransferCanceledException{
    513513        CheckParameterUtil.ensureParameterNotNull(requestToken, "requestToken");
    514514        CheckParameterUtil.ensureParameterNotNull(osmUserName, "osmUserName");
  • trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveAccessTokenTask.java

    r6643 r8291  
    4040     * @param parameters the OAuth parameters. Must not be null.
    4141     * @param requestToken the request token for which an Access Token is retrieved. Must not be null.
    42      * @throws IllegalArgumentException thrown if parameters is null.
    43      * @throws IllegalArgumentException thrown if requestToken is null.
     42     * @throws IllegalArgumentException if parameters is null.
     43     * @throws IllegalArgumentException if requestToken is null.
    4444     */
    4545    public RetrieveAccessTokenTask(Component parent, OAuthParameters parameters, OAuthToken requestToken) {
  • trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveRequestTokenTask.java

    r6643 r8291  
    3737     * is displayed
    3838     * @param parameters the OAuth parameters. Must not be null.
    39      * @throws IllegalArgumentException thrown if parameters is null.
     39     * @throws IllegalArgumentException if parameters is null.
    4040     */
    4141    public RetrieveRequestTokenTask(Component parent, OAuthParameters parameters ) {
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/ApiUrlTestTask.java

    r7473 r8291  
    4343     * @param parent the parent component relative to which the {@link PleaseWaitRunnable}-Dialog is displayed
    4444     * @param url the url. Must not be null.
    45      * @throws IllegalArgumentException thrown if url is null.
    46      */
    47     public ApiUrlTestTask(Component parent, String url) throws IllegalArgumentException {
     45     * @throws IllegalArgumentException if url is null.
     46     */
     47    public ApiUrlTestTask(Component parent, String url) {
    4848        super(parent, tr("Testing OSM API URL ''{0}''", url), false /* don't ignore exceptions */);
    4949        CheckParameterUtil.ensureParameterNotNull(url,"url");
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAccessTokenHolder.java

    r8126 r8291  
    145145     * @param pref the preferences. Must not be null.
    146146     * @param cm the credential manager. Must not be null.
    147      * @throws IllegalArgumentException thrown if cm is null
    148      */
    149     public void init(Preferences pref, CredentialsAgent cm) throws IllegalArgumentException {
     147     * @throws IllegalArgumentException if cm is null
     148     */
     149    public void init(Preferences pref, CredentialsAgent cm) {
    150150        CheckParameterUtil.ensureParameterNotNull(pref, "pref");
    151151        CheckParameterUtil.ensureParameterNotNull(cm, "cm");
     
    171171     * @param preferences the preferences. Must not be null.
    172172     * @param cm the credentials manager. Must not be null.
    173      * @throws IllegalArgumentException thrown if preferences is null
    174      * @throws IllegalArgumentException thrown if cm is null
    175      */
    176     public void save(Preferences preferences, CredentialsAgent cm) throws IllegalArgumentException {
     173     * @throws IllegalArgumentException if preferences is null
     174     * @throws IllegalArgumentException if cm is null
     175     */
     176    public void save(Preferences preferences, CredentialsAgent cm) {
    177177        CheckParameterUtil.ensureParameterNotNull(preferences, "preferences");
    178178        CheckParameterUtil.ensureParameterNotNull(cm, "cm");
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/OsmApiUrlInputPanel.java

    r6890 r8291  
    242242
    243243    private static class ApiUrlValidator extends AbstractTextComponentValidator {
    244         public ApiUrlValidator(JTextComponent tc) throws IllegalArgumentException {
     244        public ApiUrlValidator(JTextComponent tc) {
    245245            super(tc);
    246246        }
  • trunk/src/org/openstreetmap/josm/gui/progress/SwingRenderingProgressMonitor.java

    r6084 r8291  
    2222     *
    2323     * @param delegate the delegate which renders the progress information. Must not be null.
    24      * @throws IllegalArgumentException thrown if delegate is null
    25      *
     24     * @throws IllegalArgumentException if delegate is null
    2625     */
    2726    public SwingRenderingProgressMonitor(ProgressRenderer delegate) {
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java

    r7864 r8291  
    6767     * @param rowSelectionModel the row selection model. Must not be null.
    6868     * @param colSelectionModel the column selection model. Must not be null.
    69      * @throws IllegalArgumentException thrown if {@code rowSelectionModel} is null
    70      * @throws IllegalArgumentException thrown if {@code colSelectionModel} is null
    71      */
    72     public TagEditorModel(DefaultListSelectionModel rowSelectionModel, DefaultListSelectionModel colSelectionModel) throws IllegalArgumentException{
     69     * @throws IllegalArgumentException if {@code rowSelectionModel} is null
     70     * @throws IllegalArgumentException if {@code colSelectionModel} is null
     71     */
     72    public TagEditorModel(DefaultListSelectionModel rowSelectionModel, DefaultListSelectionModel colSelectionModel) {
    7373        CheckParameterUtil.ensureParameterNotNull(rowSelectionModel, "rowSelectionModel");
    7474        CheckParameterUtil.ensureParameterNotNull(colSelectionModel, "colSelectionModel");
     
    173173     * @param tag the tag. Must not be null.
    174174     *
    175      * @exception IllegalArgumentException thrown, if tag is null
     175     * @throws IllegalArgumentException if tag is null
    176176     */
    177177    public void add(TagModel tag) {
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java

    r7509 r8291  
    1010import java.awt.event.FocusEvent;
    1111import java.util.EnumSet;
     12
    1213import javax.swing.AbstractAction;
    13 
    1414import javax.swing.BoxLayout;
    1515import javax.swing.JButton;
     
    175175     *
    176176     * @param layer the data layer. Must not be null.
    177      * @throws IllegalArgumentException thrown if {@code layer} is null
    178      */
    179     public void initAutoCompletion(OsmDataLayer layer) throws IllegalArgumentException{
     177     * @throws IllegalArgumentException if {@code layer} is null
     178     */
     179    public void initAutoCompletion(OsmDataLayer layer) {
    180180        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    181181
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionList.java

    r7864 r8291  
    5757     * @param filter  the filter expression; must not be null
    5858     *
    59      * @exception IllegalArgumentException thrown, if filter is null
     59     * @throws IllegalArgumentException if filter is null
    6060     */
    6161    public void applyFilter(String filter) {
     
    100100     *
    101101     * @param other another auto completion list; must not be null
    102      * @exception IllegalArgumentException thrown, if other is null
     102     * @throws IllegalArgumentException if other is null
    103103     */
    104104    public void add(AutoCompletionList other) {
     
    116116     *
    117117     * @param other a list of AutoCompletionListItem; must not be null
    118      * @exception IllegalArgumentException thrown, if other is null
     118     * @throws IllegalArgumentException if other is null
    119119     */
    120120    public void add(List<AutoCompletionListItem> other) {
     
    264264     * @return the item
    265265     *
    266      * @exception IndexOutOfBoundsException thrown, if idx is out of bounds
     266     * @throws IndexOutOfBoundsException if idx is out of bounds
    267267     */
    268268    public AutoCompletionListItem getFilteredItem(int idx) {
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionListItem.java

    r7863 r8291  
    7878     * sets the value
    7979     * @param value the value; must not be null
    80      * @exception IllegalArgumentException thrown, if value if null
     80     * @throws IllegalArgumentException if value if null
    8181     */
    8282    public void setValue(String value) {
  • trunk/src/org/openstreetmap/josm/gui/util/AdjustmentSynchronizer.java

    r7005 r8291  
    9090     * @param adjustable the adjustable
    9191     * @return true, if the adjustable is participating in synchronized scrolling, false otherwise
    92      * @throws IllegalStateException thrown, if adjustable is not registered for synchronized scrolling
     92     * @throws IllegalStateException if adjustable is not registered for synchronized scrolling
    9393     */
    94     protected boolean isParticipatingInSynchronizedScrolling(Adjustable adjustable) throws IllegalStateException {
     94    protected boolean isParticipatingInSynchronizedScrolling(Adjustable adjustable) {
    9595        if (! synchronizedAdjustables.contains(adjustable))
    9696            throw new IllegalStateException(tr("Adjustable {0} not registered yet.", adjustable));
     
    110110     * @param view  the checkbox to control whether an adjustable participates in synchronized adjustment
    111111     * @param adjustable the adjustable
    112      * @exception IllegalArgumentException thrown, if view is null
    113      * @exception IllegalArgumentException thrown, if adjustable is null
     112     * @throws IllegalArgumentException if view is null
     113     * @throws IllegalArgumentException if adjustable is null
    114114     */
    115115    public void adapt(final JCheckBox view, final Adjustable adjustable)  {
  • trunk/src/org/openstreetmap/josm/gui/widgets/AbstractFileChooser.java

    r8126 r8291  
    154154     * </ul>
    155155     *
    156      * @exception IllegalArgumentException  if <code>mode</code> is an
    157      *                          illegal file selection mode
     156     * @throws IllegalArgumentException if <code>mode</code> is an illegal file selection mode
    158157     */
    159158    public abstract void setFileSelectionMode(int selectionMode);
     
    197196     *                  dialog is dismissed
    198197     * </ul>
    199      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
    200      * returns true.
     198     * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns true.
    201199     * @see java.awt.GraphicsEnvironment#isHeadless
    202200     */
     
    218216     *                  dialog is dismissed
    219217     * </ul>
    220      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
    221      * returns true.
     218     * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns true.
    222219     * @see java.awt.GraphicsEnvironment#isHeadless
    223220     */
  • trunk/src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java

    r7083 r8291  
    8585     *
    8686     * @param tc the text component. Must not be null.
    87      * @throws IllegalArgumentException thrown if tc is null
     87     * @throws IllegalArgumentException if tc is null
    8888     */
    89     public AbstractTextComponentValidator(JTextComponent tc) throws IllegalArgumentException {
     89    public AbstractTextComponentValidator(JTextComponent tc) {
    9090        this(tc, true);
    9191    }
     
    9595     * This can be useful if the enter key stroke needs to be forwarded to the default button in a dialog.
    9696     */
    97     public AbstractTextComponentValidator(JTextComponent tc, boolean addActionListener) throws IllegalArgumentException {
     97    public AbstractTextComponentValidator(JTextComponent tc, boolean addActionListener) {
    9898        this(tc, true, true, addActionListener);
    9999    }
    100100
    101     public AbstractTextComponentValidator(JTextComponent tc, boolean addFocusListener, boolean addDocumentListener, boolean addActionListener) throws IllegalArgumentException {
     101    public AbstractTextComponentValidator(JTextComponent tc, boolean addFocusListener, boolean addDocumentListener, boolean addActionListener) {
    102102        CheckParameterUtil.ensureParameterNotNull(tc, "tc");
    103103        this.tc = tc;
  • trunk/src/org/openstreetmap/josm/gui/widgets/DisableShortcutsOnFocusGainedTextField.java

    r7937 r8291  
    9090     *   is set to zero, the preferred width will be whatever
    9191     *   naturally results from the component implementation
    92      * @exception IllegalArgumentException if <code>columns</code> &lt; 0
     92     * @throws IllegalArgumentException if <code>columns</code> &lt; 0
    9393     */
    9494    public DisableShortcutsOnFocusGainedTextField(Document doc, String text, int columns) {
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java

    r8290 r8291  
    3939     *
    4040     * @param initialPage the URL
    41      * @exception IOException if the URL is <code>null</code> or cannot be accessed
     41     * @throws IOException if the URL is <code>null</code> or cannot be accessed
    4242     */
    4343    public JosmEditorPane(URL initialPage) throws IOException {
     
    5151     *
    5252     * @param url the URL
    53      * @exception IOException if the URL is <code>null</code> or cannot be accessed
     53     * @throws IOException if the URL is <code>null</code> or cannot be accessed
    5454     */
    5555    public JosmEditorPane(String url) throws IOException {
     
    6565     * @param type mime type of the given text
    6666     * @param text the text to initialize with; may be <code>null</code>
    67      * @exception NullPointerException if the <code>type</code> parameter
     67     * @throws NullPointerException if the <code>type</code> parameter
    6868     *      is <code>null</code>
    6969     */
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmTextArea.java

    r8005 r8291  
    5151     * @param rows the number of rows &gt;= 0
    5252     * @param columns the number of columns &gt;= 0
    53      * @exception IllegalArgumentException if the rows or columns
     53     * @throws IllegalArgumentException if the rows or columns
    5454     *  arguments are negative.
    5555     */
     
    6565     * @param rows the number of rows &gt;= 0
    6666     * @param columns the number of columns &gt;= 0
    67      * @exception IllegalArgumentException if the rows or columns
     67     * @throws IllegalArgumentException if the rows or columns
    6868     *  arguments are negative.
    6969     */
     
    8181     * @param rows the number of rows &gt;= 0
    8282     * @param columns the number of columns &gt;= 0
    83      * @exception IllegalArgumentException if the rows or columns
     83     * @throws IllegalArgumentException if the rows or columns
    8484     *  arguments are negative.
    8585     */
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmTextField.java

    r8038 r8291  
    4343     *   is set to zero, the preferred width will be whatever
    4444     *   naturally results from the component implementation
    45      * @exception IllegalArgumentException if <code>columns</code> &lt; 0
     45     * @throws IllegalArgumentException if <code>columns</code> &lt; 0
    4646     */
    4747    public JosmTextField(Document doc, String text, int columns) {
     
    6464     *   naturally results from the component implementation
    6565     * @param undoRedo Enables or not Undo/Redo feature. Not recommended for table cell editors, unless each cell provides its own editor
    66      * @exception IllegalArgumentException if <code>columns</code> &lt; 0
     66     * @throws IllegalArgumentException if <code>columns</code> &lt; 0
    6767     */
    6868    public JosmTextField(Document doc, String text, int columns, boolean undoRedo) {
  • trunk/src/org/openstreetmap/josm/io/AbstractReader.java

    r7937 r8291  
    5252     */
    5353    protected final Map<Long, Collection<RelationMemberData>> relations = new HashMap<>();
    54    
     54
    5555    /**
    5656     * Replies the parsed data set
     
    6161        return ds;
    6262    }
    63    
     63
    6464    /**
    6565     * Processes the parsed nodes after parsing. Just adds them to
     
    7979     * adds the way to the dataset
    8080     *
    81      * @throws IllegalDataException thrown if a data integrity problem is detected
     81     * @throws IllegalDataException if a data integrity problem is detected
    8282     */
    8383    protected void processWaysAfterParsing() throws IllegalDataException{
     
    119119     * Completes the parsed relations with its members.
    120120     *
    121      * @throws IllegalDataException thrown if a data integrity problem is detected, i.e. if a
     121     * @throws IllegalDataException if a data integrity problem is detected, i.e. if a
    122122     * relation member refers to a local primitive which wasn't available in the data
    123      *
    124123     */
    125124    protected void processRelationsAfterParsing() throws IllegalDataException {
     
    191190        }
    192191    }
    193    
     192
    194193    protected final void prepareDataSet() throws IllegalDataException {
    195194        try {
  • trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java

    r7303 r8291  
    3232     * @param query the query part
    3333     * @return the query object
    34      * @throws ChangesetQueryUrlException thrown if query doesn't consist of valid query parameters
    35      *
     34     * @throws ChangesetQueryUrlException if query doesn't consist of valid query parameters
    3635     */
    3736    public static ChangesetQuery buildFromUrlQuery(String query) throws ChangesetQueryUrlException{
     
    6766     * @param uid the uid of the user. &gt; 0 expected.
    6867     * @return the query object with the applied restriction
    69      * @throws IllegalArgumentException thrown if uid &lt;= 0
     68     * @throws IllegalArgumentException if uid &lt;= 0
    7069     * @see #forUser(String)
    7170     */
    72     public ChangesetQuery forUser(int uid) throws IllegalArgumentException{
     71    public ChangesetQuery forUser(int uid) {
    7372        if (uid <= 0)
    7473            throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0 expected. Got ''{1}''.", "uid", uid));
     
    8685     * @param username the username. Must not be null.
    8786     * @return the query object with the applied restriction
    88      * @throws IllegalArgumentException thrown if username is null.
     87     * @throws IllegalArgumentException if username is null.
    8988     * @see #forUser(int)
    9089     */
     
    133132     *
    134133     * @return the restricted changeset query
    135      * @throws IllegalArgumentException thrown if either of the parameters isn't a valid longitude or
     134     * @throws IllegalArgumentException if either of the parameters isn't a valid longitude or
    136135     * latitude value
    137136     */
    138     public ChangesetQuery inBbox(double minLon, double minLat, double maxLon, double maxLat) throws IllegalArgumentException{
     137    public ChangesetQuery inBbox(double minLon, double minLat, double maxLon, double maxLat) {
    139138        if (!LatLon.isValidLon(minLon))
    140139            throw new IllegalArgumentException(tr("Illegal longitude value for parameter ''{0}'', got {1}", "minLon", minLon));
     
    156155     *
    157156     * @return the restricted changeset query
    158      * @throws IllegalArgumentException thrown if min is null
    159      * @throws IllegalArgumentException thrown if max is null
     157     * @throws IllegalArgumentException if min is null
     158     * @throws IllegalArgumentException if max is null
    160159     */
    161160    public ChangesetQuery inBbox(LatLon min, LatLon max) {
     
    171170     * @param bbox the bounding box. Must not be null.
    172171     * @return the changeset query
    173      * @throws IllegalArgumentException thrown if bbox is null.
    174      */
    175     public ChangesetQuery inBbox(Bounds bbox) throws IllegalArgumentException {
     172     * @throws IllegalArgumentException if bbox is null.
     173     */
     174    public ChangesetQuery inBbox(Bounds bbox) {
    176175        CheckParameterUtil.ensureParameterNotNull(bbox, "bbox");
    177176        this.bounds = bbox;
     
    185184     * @param d the date . Must not be null.
    186185     * @return the restricted changeset query
    187      * @throws IllegalArgumentException thrown if d is null
    188      */
    189     public ChangesetQuery closedAfter(Date d) throws IllegalArgumentException{
     186     * @throws IllegalArgumentException if d is null
     187     */
     188    public ChangesetQuery closedAfter(Date d) {
    190189        CheckParameterUtil.ensureParameterNotNull(d, "d");
    191190        this.closedAfter = d;
     
    201200     * @param createdBefore only reply changesets created before this date. Must not be null.
    202201     * @return the restricted changeset query
    203      * @throws IllegalArgumentException thrown if closedAfter is null
    204      * @throws IllegalArgumentException thrown if createdBefore is null
    205      */
    206     public ChangesetQuery closedAfterAndCreatedBefore(Date closedAfter, Date createdBefore ) throws IllegalArgumentException {
     202     * @throws IllegalArgumentException if closedAfter is null
     203     * @throws IllegalArgumentException if createdBefore is null
     204     */
     205    public ChangesetQuery closedAfterAndCreatedBefore(Date closedAfter, Date createdBefore ) {
    207206        CheckParameterUtil.ensureParameterNotNull(closedAfter, "closedAfter");
    208207        CheckParameterUtil.ensureParameterNotNull(createdBefore, "createdBefore");
     
    241240     * @param changesetIds the changeset ids
    242241     * @return the query object with the applied restriction
    243      * @throws IllegalArgumentException thrown if changesetIds is null.
     242     * @throws IllegalArgumentException if changesetIds is null.
    244243     */
    245244    public ChangesetQuery forChangesetIds(Collection<Long> changesetIds) {
  • trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java

    r7432 r8291  
    113113     * @throws NoSuchElementException if ds does not include an {@link OsmPrimitive} with id=<code>id</code>
    114114     */
    115     protected void remember(DataSet ds, long id, OsmPrimitiveType type) throws IllegalArgumentException, NoSuchElementException{
     115    protected void remember(DataSet ds, long id, OsmPrimitiveType type) throws NoSuchElementException{
    116116        CheckParameterUtil.ensureParameterNotNull(ds, "ds");
    117117        if (id <= 0) return;
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r8285 r8291  
    9090     * @param serverUrl  the server URL
    9191     * @return the OsmApi
    92      * @throws IllegalArgumentException thrown, if serverUrl is null
     92     * @throws IllegalArgumentException if serverUrl is null
    9393     *
    9494     */
     
    134134     *
    135135     * @param serverUrl the server URL. Must not be null
    136      * @throws IllegalArgumentException thrown, if serverUrl is null
     136     * @throws IllegalArgumentException if serverUrl is null
    137137     */
    138138    protected OsmApi(String serverUrl)  {
     
    417417     * @param progressMonitor the progress monitor
    418418     * @throws OsmTransferException signifying a non-200 return code, or connection errors
    419      * @throws IllegalArgumentException thrown if changeset is null
     419     * @throws IllegalArgumentException if changeset is null
    420420     */
    421421    public void openChangeset(Changeset changeset, ProgressMonitor progressMonitor) throws OsmTransferException {
     
    487487     *
    488488     * @throws OsmTransferException if something goes wrong.
    489      * @throws IllegalArgumentException thrown if changeset is null
    490      * @throws IllegalArgumentException thrown if changeset.getId() &lt;= 0
     489     * @throws IllegalArgumentException if changeset is null
     490     * @throws IllegalArgumentException if changeset.getId() &lt;= 0
    491491     */
    492492    public void closeChangeset(Changeset changeset, ProgressMonitor monitor) throws OsmTransferException {
     
    756756     * Ensures that the current changeset can be used for uploading data
    757757     *
    758      * @throws OsmTransferException thrown if the current changeset can't be used for
    759      * uploading data
     758     * @throws OsmTransferException if the current changeset can't be used for uploading data
    760759     */
    761760    protected void ensureValidChangeset() throws OsmTransferException {
     
    781780     *
    782781     * @param changeset the changeset
    783      * @throws IllegalArgumentException thrown if changeset.getId() &lt;= 0
    784      * @throws IllegalArgumentException thrown if !changeset.isOpen()
     782     * @throws IllegalArgumentException if changeset.getId() &lt;= 0
     783     * @throws IllegalArgumentException if !changeset.isOpen()
    785784     */
    786785    public void setChangeset(Changeset changeset) {
  • trunk/src/org/openstreetmap/josm/io/OsmChangeBuilder.java

    r6889 r8291  
    7070     * Writes the prolog of the OsmChange document
    7171     *
    72      * @throws IllegalStateException thrown if the prologs has already been written
     72     * @throws IllegalStateException if the prologs has already been written
    7373     */
    74     public void start() throws IllegalStateException{
     74    public void start() {
    7575        if (prologWritten)
    7676            throw new IllegalStateException(tr("Prolog of OsmChange document already written. Please write only once."));
     
    8585     *
    8686     * @param primitives the collection of primitives. Ignored if null.
    87      * @throws IllegalStateException thrown if the prologs has not been written yet
     87     * @throws IllegalStateException if the prologs has not been written yet
    8888     * @see #start()
    8989     * @see #append(IPrimitive)
    9090     */
    91     public void append(Collection<? extends IPrimitive> primitives) throws IllegalStateException{
     91    public void append(Collection<? extends IPrimitive> primitives) {
    9292        if (primitives == null) return;
    9393        if (!prologWritten)
     
    102102     *
    103103     * @param p the primitive. Ignored if null.
    104      * @throws IllegalStateException thrown if the prologs has not been written yet
     104     * @throws IllegalStateException if the prologs has not been written yet
    105105     * @see #start()
    106106     * @see #append(Collection)
    107 
    108107     */
    109108    public void append(IPrimitive p) {
     
    117116     * Writes the epilog of the OsmChange document
    118117     *
    119      * @throws IllegalStateException thrown if the prologs has not been written yet
     118     * @throws IllegalStateException if the prologs has not been written yet
    120119     */
    121     public void finish() throws IllegalStateException {
     120    public void finish() {
    122121        if (!prologWritten)
    123122            throw new IllegalStateException(tr("Prolog of OsmChange document not written yet. Please write first."));
  • trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java

    r7937 r8291  
    103103     *
    104104     * @return the dataset with the parsed data
    105      * @throws IllegalDataException thrown if the an error was found while parsing the data from the source
    106      * @throws IllegalArgumentException thrown if source is <code>null</code>
     105     * @throws IllegalDataException if the an error was found while parsing the data from the source
     106     * @throws IllegalArgumentException if source is <code>null</code>
    107107     */
    108108    public static DataSet parseDataSet(InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException {
  • trunk/src/org/openstreetmap/josm/io/OsmChangesetParser.java

    r8287 r8291  
    269269     *
    270270     * @return the list of changesets
    271      * @throws IllegalDataException thrown if the an error was found while parsing the data from the source
     271     * @throws IllegalDataException if the an error was found while parsing the data from the source
    272272     */
    273273    @SuppressWarnings("resource")
  • trunk/src/org/openstreetmap/josm/io/OsmConnection.java

    r7082 r8291  
    7373     *
    7474     * @param con the connection
    75      * @throws OsmTransferException thrown if something went wrong. Check for nested exceptions
     75     * @throws OsmTransferException if something went wrong. Check for nested exceptions
    7676     */
    7777    protected void addBasicAuthorizationHeader(HttpURLConnection con) throws OsmTransferException {
     
    110110     * @param connection the connection
    111111     *
    112      * @throws OsmTransferException thrown if there is currently no OAuth Access Token configured
    113      * @throws OsmTransferException thrown if signing fails
     112     * @throws OsmTransferException if there is currently no OAuth Access Token configured
     113     * @throws OsmTransferException if signing fails
    114114     */
    115115    protected void addOAuthAuthorizationHeader(HttpURLConnection connection) throws OsmTransferException {
  • trunk/src/org/openstreetmap/josm/io/OsmExporter.java

    r7562 r8291  
    6363     * @throws IllegalArgumentException if {@code layer} is not an instance of {@code OsmDataLayer}
    6464     */
    65     public void exportData(File file, Layer layer, boolean noBackup) throws IllegalArgumentException {
     65    public void exportData(File file, Layer layer, boolean noBackup) {
    6666        checkOsmDataLayer(layer);
    6767        save(file, (OsmDataLayer) layer, noBackup);
    6868    }
    6969
    70     protected static void checkOsmDataLayer(Layer layer) throws IllegalArgumentException {
     70    protected static void checkOsmDataLayer(Layer layer) {
    7171        if (!(layer instanceof OsmDataLayer)) {
    7272            throw new IllegalArgumentException(MessageFormat.format("Expected instance of OsmDataLayer. Got ''{0}''.", layer
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r8126 r8291  
    644644     *
    645645     * @return the dataset with the parsed data
    646      * @throws IllegalDataException thrown if the an error was found while parsing the data from the source
    647      * @throws IllegalArgumentException thrown if source is null
     646     * @throws IllegalDataException if the an error was found while parsing the data from the source
     647     * @throws IllegalArgumentException if source is null
    648648     */
    649649    public static DataSet parseDataSet(InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException {
  • trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java

    r7092 r8291  
    4747     * @param primitive  the primitive to be read. Must not be null. primitive.id &gt; 0 expected
    4848     *
    49      * @exception IllegalArgumentException thrown if primitive is null
    50      * @exception IllegalArgumentException thrown if primitive.id &lt;= 0
    51      */
    52     public OsmServerBackreferenceReader(OsmPrimitive primitive) throws IllegalArgumentException {
     49     * @throws IllegalArgumentException if primitive is null
     50     * @throws IllegalArgumentException if primitive.id &lt;= 0
     51     */
     52    public OsmServerBackreferenceReader(OsmPrimitive primitive) {
    5353        CheckParameterUtil.ensureValidPrimitiveId(primitive, "primitive");
    5454        this.id = primitive.getId();
     
    6363     * @param type the type of the primitive. Must not be null.
    6464     *
    65      * @exception IllegalArgumentException thrown if id &lt;= 0
    66      * @exception IllegalArgumentException thrown if type is null
    67      *
    68      */
    69     public OsmServerBackreferenceReader(long id, OsmPrimitiveType type) throws IllegalArgumentException   {
     65     * @throws IllegalArgumentException if id &lt;= 0
     66     * @throws IllegalArgumentException if type is null
     67     */
     68    public OsmServerBackreferenceReader(long id, OsmPrimitiveType type) {
    7069        if (id <= 0)
    7170            throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0 expected. Got ''{1}''.", "id", id));
     
    9594     * @param readFull true, if referers should be read fully (i.e. including their immediate children)
    9695     *
    97      * @exception IllegalArgumentException thrown if id &lt;= 0
    98      * @exception IllegalArgumentException thrown if type is null
    99      *
    100      */
    101     public OsmServerBackreferenceReader(long id, OsmPrimitiveType type, boolean readFull) throws IllegalArgumentException  {
     96     * @throws IllegalArgumentException if id &lt;= 0
     97     * @throws IllegalArgumentException if type is null
     98     */
     99    public OsmServerBackreferenceReader(long id, OsmPrimitiveType type, boolean readFull)  {
    102100        this(id, type);
    103101        this.readFull = readFull;
     
    185183     * @param progressMonitor  the progress monitor
    186184     * @return the modified dataset
    187      * @throws OsmTransferException thrown if an exception occurs.
     185     * @throws OsmTransferException if an exception occurs.
    188186     */
    189187    protected DataSet readIncompletePrimitives(DataSet ds, ProgressMonitor progressMonitor) throws OsmTransferException {
     
    224222     * @param progressMonitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null.
    225223     * @return the dataset with the referring primitives
    226      * @exception OsmTransferException thrown if an error occurs while communicating with the server
     224     * @throws OsmTransferException if an error occurs while communicating with the server
    227225     */
    228226    @Override
  • trunk/src/org/openstreetmap/josm/io/OsmServerChangesetReader.java

    r7704 r8291  
    5858     * @param monitor a progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null
    5959     * @return the list of changesets read from the server
    60      * @throws IllegalArgumentException thrown if query is null
    61      * @throws OsmTransferException thrown if something goes wrong w
     60     * @throws IllegalArgumentException if query is null
     61     * @throws OsmTransferException if something goes wrong w
    6262     */
    6363    public List<Changeset> queryChangesets(ChangesetQuery query, ProgressMonitor monitor) throws OsmTransferException {
     
    9696     * @param monitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null
    9797     * @return the changeset read
    98      * @throws OsmTransferException thrown if something goes wrong
     98     * @throws OsmTransferException if something goes wrong
    9999     * @throws IllegalArgumentException if id &lt;= 0
    100100     * @since 7704
     
    137137     * @param monitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null
    138138     * @return the changeset read
    139      * @throws OsmTransferException thrown if something goes wrong
     139     * @throws OsmTransferException if something goes wrong
    140140     * @throws IllegalArgumentException if id &lt;= 0
    141141     * @since 7704
     
    187187     * @param monitor the progress monitor. {@link NullProgressMonitor#INSTANCE} assumed if null.
    188188     * @return the changeset content
    189      * @throws IllegalArgumentException thrown if id &lt;= 0
    190      * @throws OsmTransferException thrown if something went wrong
    191      */
    192     public ChangesetDataSet downloadChangeset(int id, ProgressMonitor monitor) throws IllegalArgumentException, OsmTransferException {
     189     * @throws IllegalArgumentException if id &lt;= 0
     190     * @throws OsmTransferException if something went wrong
     191     */
     192    public ChangesetDataSet downloadChangeset(int id, ProgressMonitor monitor) throws OsmTransferException {
    193193        if (id <= 0)
    194194            throw new IllegalArgumentException(MessageFormat.format("Expected value of type integer > 0 for parameter ''{0}'', got {1}", "id", id));
  • trunk/src/org/openstreetmap/josm/io/OsmServerHistoryReader.java

    r7033 r8291  
    2929     * @param id the id of the primitive
    3030     *
    31      *  @exception IllegalArgumentException thrown, if type is null
     31     *  @throws IllegalArgumentException if type is null
    3232     */
    33     public OsmServerHistoryReader(OsmPrimitiveType type, long id) throws IllegalArgumentException {
     33    public OsmServerHistoryReader(OsmPrimitiveType type, long id) {
    3434        CheckParameterUtil.ensureParameterNotNull(type, "type");
    3535        if (id < 0)
     
    5252     *
    5353     * @return the data set with the parsed history data
    54      * @throws OsmTransferException thrown, if an exception occurs
     54     * @throws OsmTransferException if an exception occurs
    5555     */
    5656    public HistoryDataSet parseHistory(ProgressMonitor progressMonitor) throws OsmTransferException {
  • trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java

    r7432 r8291  
    4040     * @param full true, if a full download is requested (i.e. a download including
    4141     * immediate children); false, otherwise
    42      * @throws IllegalArgumentException thrown if id &lt;= 0
    43      * @throws IllegalArgumentException thrown if type is null
     42     * @throws IllegalArgumentException if id &lt;= 0
     43     * @throws IllegalArgumentException if type is null
    4444     */
    45     public OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full) throws IllegalArgumentException {
     45    public OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full) {
    4646        this(id, type, full, -1);
    4747    }
     
    5353     * @param type the type. Must not be null.
    5454     * @param version the specific version number, if required; -1, otherwise
    55      * @throws IllegalArgumentException thrown if id &lt;= 0
    56      * @throws IllegalArgumentException thrown if type is null
     55     * @throws IllegalArgumentException if id &lt;= 0
     56     * @throws IllegalArgumentException if type is null
    5757     */
    58     public OsmServerObjectReader(long id, OsmPrimitiveType type, int version) throws IllegalArgumentException {
     58    public OsmServerObjectReader(long id, OsmPrimitiveType type, int version) {
    5959        this(id, type, false, version);
    6060    }
    6161
    62     protected OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full, int version) throws IllegalArgumentException {
     62    protected OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full, int version) {
    6363        if (id <= 0)
    6464            throw new IllegalArgumentException(MessageFormat.format("Expected value > 0 for parameter ''{0}'', got {1}", "id", id));
     
    7575     * @param full true, if a full download is requested (i.e. a download including
    7676     * immediate children); false, otherwise
    77      * @throws IllegalArgumentException thrown if id is null
    78      * @throws IllegalArgumentException thrown if id.getUniqueId() &lt;= 0
     77     * @throws IllegalArgumentException if id is null
     78     * @throws IllegalArgumentException if id.getUniqueId() &lt;= 0
    7979     */
    8080    public OsmServerObjectReader(PrimitiveId id, boolean full) {
     
    8787     * @param id the object id. Must not be null. Unique id &gt; 0 required.
    8888     * @param version the specific version number, if required; -1, otherwise
    89      * @throws IllegalArgumentException thrown if id is null
    90      * @throws IllegalArgumentException thrown if id.getUniqueId() &lt;= 0
     89     * @throws IllegalArgumentException if id is null
     90     * @throws IllegalArgumentException if id.getUniqueId() &lt;= 0
    9191     */
    9292    public OsmServerObjectReader(PrimitiveId id, int version) {
  • trunk/src/org/openstreetmap/josm/io/OsmServerReader.java

    r8218 r8291  
    4646     * @param progressMonitor progress monitoring and abort handler
    4747     * @return A reader reading the input stream (servers answer) or <code>null</code>.
    48      * @throws OsmTransferException thrown if data transfer errors occur
     48     * @throws OsmTransferException if data transfer errors occur
    4949     */
    5050    protected InputStream getInputStream(String urlStr, ProgressMonitor progressMonitor) throws OsmTransferException  {
     
    6060     * @param reason The reason to show on console. Can be {@code null} if no reason is given
    6161     * @return A reader reading the input stream (servers answer) or <code>null</code>.
    62      * @throws OsmTransferException thrown if data transfer errors occur
     62     * @throws OsmTransferException if data transfer errors occur
    6363     */
    6464    protected InputStream getInputStream(String urlStr, ProgressMonitor progressMonitor, String reason) throws OsmTransferException  {
     
    8686     * @param progressMonitor progress monitoring and abort handler
    8787     * @return An reader reading the input stream (servers answer) or <code>null</code>.
    88      * @throws OsmTransferException thrown if data transfer errors occur
     88     * @throws OsmTransferException if data transfer errors occur
    8989     */
    9090    protected InputStream getInputStreamRaw(String urlStr, ProgressMonitor progressMonitor) throws OsmTransferException {
     
    9999     * @param reason The reason to show on console. Can be {@code null} if no reason is given
    100100     * @return An reader reading the input stream (servers answer) or <code>null</code>.
    101      * @throws OsmTransferException thrown if data transfer errors occur
     101     * @throws OsmTransferException if data transfer errors occur
    102102     */
    103103    protected InputStream getInputStreamRaw(String urlStr, ProgressMonitor progressMonitor, String reason) throws OsmTransferException {
     
    114114     *                                                for {@code filename} and uncompress a gzip/bzip2 stream.
    115115     * @return An reader reading the input stream (servers answer) or <code>null</code>.
    116      * @throws OsmTransferException thrown if data transfer errors occur
     116     * @throws OsmTransferException if data transfer errors occur
    117117     */
    118118    @SuppressWarnings("resource")
  • trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java

    r8285 r8291  
    8383     * @param primitives the collection of primitives to upload
    8484     * @param progressMonitor the progress monitor
    85      * @throws OsmTransferException thrown if an exception occurs
     85     * @throws OsmTransferException if an exception occurs
    8686     */
    8787    protected void uploadChangesIndividually(Collection<? extends OsmPrimitive> primitives, ProgressMonitor progressMonitor) throws OsmTransferException {
     
    125125     * @param primitives the collection of primitives to upload
    126126     * @param progressMonitor  the progress monitor
    127      * @throws OsmTransferException thrown if an exception occurs
     127     * @throws OsmTransferException if an exception occurs
    128128     */
    129129    protected void uploadChangesAsDiffUpload(Collection<? extends OsmPrimitive> primitives, ProgressMonitor progressMonitor) throws OsmTransferException {
     
    144144     * @param progressMonitor  the progress monitor
    145145     * @param chunkSize the size of the individual upload chunks. &gt; 0 required.
    146      * @throws IllegalArgumentException thrown if chunkSize &lt;= 0
    147      * @throws OsmTransferException thrown if an exception occurs
     146     * @throws IllegalArgumentException if chunkSize &lt;= 0
     147     * @throws OsmTransferException if an exception occurs
    148148     */
    149149    protected void uploadChangesInChunks(Collection<? extends OsmPrimitive> primitives, ProgressMonitor progressMonitor, int chunkSize) throws OsmTransferException, IllegalArgumentException {
     
    186186     * @param changeset the changeset the data is uploaded to. Must not be null.
    187187     * @param monitor the progress monitor. If null, assumes {@link NullProgressMonitor#INSTANCE}
    188      * @throws IllegalArgumentException thrown if changeset is null
    189      * @throws IllegalArgumentException thrown if strategy is null
    190      * @throws OsmTransferException thrown if something goes wrong
     188     * @throws IllegalArgumentException if changeset is null
     189     * @throws IllegalArgumentException if strategy is null
     190     * @throws OsmTransferException if something goes wrong
    191191     */
    192192    public void uploadOsm(UploadStrategySpecification strategy, Collection<? extends OsmPrimitive> primitives, Changeset changeset, ProgressMonitor monitor) throws OsmTransferException {
  • trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java

    r6830 r8291  
    2828     * @param host the hostname for these credentials
    2929     * @return the credentials
    30      * @throws CredentialsAgentException thrown if a problem occurs in a implementation of this interface
     30     * @throws CredentialsAgentException if a problem occurs in a implementation of this interface
    3131     */
    3232    PasswordAuthentication lookup(RequestorType requestorType, String host) throws CredentialsAgentException;
     
    3939     * @param host the hostname for these credentials
    4040     * @param credentials the credentials
    41      * @throws CredentialsAgentException thrown if a problem occurs in a implementation of this interface
     41     * @throws CredentialsAgentException if a problem occurs in a implementation of this interface
    4242     */
    4343    void store(RequestorType requestorType, String host, PasswordAuthentication credentials) throws CredentialsAgentException;
     
    5050     * @param noSuccessWithLastResponse true, if the last request with the supplied credentials failed; false otherwise.
    5151     * If true, implementations of this interface are advised to prompt the user for new credentials.
    52      * @throws CredentialsAgentException thrown if a problem occurs in a implementation of this interface
     52     * @throws CredentialsAgentException if a problem occurs in a implementation of this interface
    5353
    5454     */
     
    6060     *
    6161     * @return the current OAuth Access Token to access the OSM server.
    62      * @throws CredentialsAgentException thrown if something goes wrong
     62     * @throws CredentialsAgentException if something goes wrong
    6363     */
    6464    OAuthToken lookupOAuthAccessToken() throws CredentialsAgentException;
     
    6868     *
    6969     * @param accessToken the access Token. null, to remove the Access Token.
    70      * @throws CredentialsAgentException thrown if something goes wrong
     70     * @throws CredentialsAgentException if something goes wrong
    7171     */
    7272    void storeOAuthAccessToken(OAuthToken accessToken) throws CredentialsAgentException;
  • trunk/src/org/openstreetmap/josm/io/auth/JosmPreferencesCredentialAgent.java

    r7083 r8291  
    9999     *
    100100     * @return the current OAuth Access Token to access the OSM server.
    101      * @throws CredentialsAgentException thrown if something goes wrong
     101     * @throws CredentialsAgentException if something goes wrong
    102102     */
    103103    @Override
     
    114114     *
    115115     * @param accessToken the access Token. null, to remove the Access Token.
    116      * @throws CredentialsAgentException thrown if something goes wrong
     116     * @throws CredentialsAgentException if something goes wrong
    117117     */
    118118    @Override
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/DNSName.java

    r7937 r8291  
    118118     *
    119119     * @param out the DER stream to encode the DNSName to.
    120      * @exception IOException on encoding errors.
     120     * @throws IOException on encoding errors.
    121121     */
    122122    @Override
  • trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java

    r8061 r8291  
    5454     * @param toUpdate a collection of plugin descriptions for plugins to update/download. Must not be null.
    5555     * @param title the title to display in the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}
    56      * @throws IllegalArgumentException thrown if toUpdate is null
    57      */
    58     public PluginDownloadTask(Component parent, Collection<PluginInformation> toUpdate, String title) throws IllegalArgumentException{
     56     * @throws IllegalArgumentException if toUpdate is null
     57     */
     58    public PluginDownloadTask(Component parent, Collection<PluginInformation> toUpdate, String title) {
    5959        super(parent, title == null ? "" : title, false /* don't ignore exceptions */);
    6060        CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate");
     
    6868     * @param toUpdate a collection of plugin descriptions for plugins to update/download. Must not be null.
    6969     * @param title the title to display in the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}
    70      * @throws IllegalArgumentException thrown if toUpdate is null
     70     * @throws IllegalArgumentException if toUpdate is null
    7171     */
    7272    public PluginDownloadTask(ProgressMonitor monitor, Collection<PluginInformation> toUpdate, String title) {
     
    8080     *
    8181     * @param toUpdate the collection of plugins to update. Must not be null.
    82      * @throws IllegalArgumentException thrown if toUpdate is null
    83      */
    84     public void setPluginsToDownload(Collection<PluginInformation> toUpdate) throws IllegalArgumentException{
     82     * @throws IllegalArgumentException if toUpdate is null
     83     */
     84    public void setPluginsToDownload(Collection<PluginInformation> toUpdate) {
    8585        CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate");
    8686        this.toUpdate.clear();
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r8126 r8291  
    883883     * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null.
    884884     * @param displayErrMsg if {@code true}, a blocking error message is displayed in case of I/O exception.
    885      * @throws IllegalArgumentException thrown if plugins is null
     885     * @throws IllegalArgumentException if plugins is null
    886886     */
    887887    public static Collection<PluginInformation> updatePlugins(Component parent,
    888             Collection<PluginInformation> pluginsWanted, ProgressMonitor monitor, boolean displayErrMsg)
    889             throws IllegalArgumentException {
     888            Collection<PluginInformation> pluginsWanted, ProgressMonitor monitor, boolean displayErrMsg) {
    890889        Collection<PluginInformation> plugins = null;
    891890        pluginDownloadTask = null;
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r8101 r8291  
    106106     * @param file the plugin jar
    107107     * @param name the plugin name
    108      * @throws PluginException thrown if reading the manifest file fails
     108     * @throws PluginException if reading the manifest file fails
    109109     */
    110110    public PluginInformation(File file, String name) throws PluginException {
     
    135135     * @param name the plugin name
    136136     * @param url the download URL for the plugin
    137      * @throws PluginException thrown if the plugin information can't be read from the input stream
     137     * @throws PluginException if the plugin information can't be read from the input stream
    138138     */
    139139    public PluginInformation(InputStream manifestStream, String name, String url) throws PluginException {
  • trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java

    r7082 r8291  
    5555     * @param in the input stream from which to parse
    5656     * @return the list of plugin information objects
    57      * @throws PluginListParseException thrown if something goes wrong while parsing
     57     * @throws PluginListParseException if something goes wrong while parsing
    5858     */
    5959    public List<PluginInformation> parse(InputStream in) throws PluginListParseException{
  • 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.