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

fix squid:RedundantThrowsDeclarationCheck + consistent Javadoc for exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/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. > 0 expected.
    6867     * @return the query object with the applied restriction
    69      * @throws IllegalArgumentException thrown if uid <= 0
     68     * @throws IllegalArgumentException if uid <= 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) {
Note: See TracChangeset for help on using the changeset viewer.