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/data/osm/AbstractPrimitive.java

    r8290 r8291  
    187187     * @param id the id. > 0 required
    188188     * @param version the version > 0 required
    189      * @throws IllegalArgumentException thrown if id <= 0
    190      * @throws IllegalArgumentException thrown if version <= 0
    191      * @throws DataIntegrityProblemException If id is changed and primitive was already added to the dataset
     189     * @throws IllegalArgumentException if id <= 0
     190     * @throws IllegalArgumentException if version <= 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. >= 0 required.
    260      * @throws IllegalStateException thrown if this primitive is new.
    261      * @throws IllegalArgumentException thrown if id < 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 < 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."));
Note: See TracChangeset for help on using the changeset viewer.