Ignore:
Timestamp:
2014-01-03T04:51:04+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Lanes.java

    r6598 r6603  
     1// License: GPL. See LICENSE file for details.
    12package org.openstreetmap.josm.data.validation.tests;
    23
     4import org.openstreetmap.josm.Main;
    35import org.openstreetmap.josm.data.osm.OsmPrimitive;
    46import org.openstreetmap.josm.data.validation.Severity;
     
    1517import static org.openstreetmap.josm.tools.I18n.tr;
    1618
     19/**
     20 * Test that validates {@code lane:} tags.
     21 * @since 6592
     22 */
    1723public class Lanes extends Test.TagTest {
    1824
     25    /**
     26     * Constructs a new {@code Lanes} test.
     27     */
    1928    public Lanes() {
    2029        super(tr("Lane tags"));
     
    4857                }
    4958            } catch (NumberFormatException ignore) {
     59                Main.debug(ignore.getMessage());
    5060            }
    5161        }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r6601 r6603  
    8080         * A function mapping the matched {@link OsmPrimitive} to a {@link Tag}.
    8181         */
    82         static abstract class PrimitiveToTag implements Utils.Function<OsmPrimitive, Tag> {
     82        abstract static class PrimitiveToTag implements Utils.Function<OsmPrimitive, Tag> {
    8383
    8484            /**
     
    226226                }
    227227            } catch (IndexOutOfBoundsException ignore) {
     228                Main.debug(ignore.getMessage());
    228229            }
    229230            return null;
Note: See TracChangeset for help on using the changeset viewer.