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/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);
Note: See TracChangeset for help on using the changeset viewer.