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/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 <= 0
    43      * @throws IllegalArgumentException thrown if type is null
     42     * @throws IllegalArgumentException if id <= 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 <= 0
    56      * @throws IllegalArgumentException thrown if type is null
     55     * @throws IllegalArgumentException if id <= 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) {
Note: See TracChangeset for help on using the changeset viewer.