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