Ignore:
Timestamp:
2015-06-27T21:43:35+02:00 (9 years ago)
Author:
Don-vip
Message:

fix remaining checkstyle issues

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

Legend:

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

    r8509 r8540  
    2727
    2828    private final OpeningHourTest openingHourTest = new OpeningHourTest();
    29     private static final Set<String> RESTRICTION_TYPES = new HashSet<>(Arrays.asList("oneway", "toll", "noexit", "maxspeed", "minspeed", "maxstay",
    30             "maxweight", "maxaxleload", "maxheight", "maxwidth", "maxlength", "overtaking", "maxgcweight", "maxgcweightrating", "fee"));
     29    private static final Set<String> RESTRICTION_TYPES = new HashSet<>(Arrays.asList("oneway", "toll", "noexit", "maxspeed", "minspeed",
     30            "maxstay", "maxweight", "maxaxleload", "maxheight", "maxwidth", "maxlength", "overtaking", "maxgcweight", "maxgcweightrating",
     31            "fee"));
    3132    private static final Set<String> RESTRICTION_VALUES = new HashSet<>(Arrays.asList("yes", "official", "designated", "destination",
    3233            "delivery", "permissive", "private", "agricultural", "forestry", "no"));
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r8509 r8540  
    9393            }
    9494            if (n.hasKey("source:maxspeed")) {
    95                 // Check maxspeed but not context against highway for nodes as maxspeed is not set on highways here but on signs, speed cameras, etc.
     95                // Check maxspeed but not context against highway for nodes
     96                // as maxspeed is not set on highways here but on signs, speed cameras, etc.
    9697                testSourceMaxspeed(n, false);
    9798            }
     
    209210                }
    210211                if ((leftByPedestrians || leftByCyclists) && leftByCars) {
    211                     errors.add(new TestError(this, Severity.OTHER, tr("Missing pedestrian crossing information"), MISSING_PEDESTRIAN_CROSSING, n));
     212                    errors.add(new TestError(this, Severity.OTHER, tr("Missing pedestrian crossing information"),
     213                            MISSING_PEDESTRIAN_CROSSING, n));
    212214                    return;
    213215                }
     
    244246            String country = value.substring(0, index);
    245247            if (!ISO_COUNTRIES.contains(country)) {
    246                 errors.add(new TestError(this, Severity.WARNING, tr("Unknown country code: {0}", country), SOURCE_MAXSPEED_UNKNOWN_COUNTRY_CODE, p));
     248                errors.add(new TestError(this, Severity.WARNING,
     249                        tr("Unknown country code: {0}", country), SOURCE_MAXSPEED_UNKNOWN_COUNTRY_CODE, p));
    247250            }
    248251            // Check context
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r8510 r8540  
    431431            final StringBuffer sb = new StringBuffer();
    432432            while (m.find()) {
    433                 final String argument = determineArgument((Selector.GeneralSelector) matchingSelector, Integer.parseInt(m.group(1)), m.group(2), p);
     433                final String argument = determineArgument((Selector.GeneralSelector) matchingSelector,
     434                        Integer.parseInt(m.group(1)), m.group(2), p);
    434435                try {
    435436                    // Perform replacement with null-safe + regex-safe handling
  • trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java

    r8510 r8540  
    192192     * @return a list of {@link TestError} or an empty list
    193193     */
    194     public List<OpeningHoursTestError> checkOpeningHourSyntax(final String key, final String value, CheckMode mode, boolean ignoreOtherSeverity) {
     194    public List<OpeningHoursTestError> checkOpeningHourSyntax(final String key, final String value, CheckMode mode,
     195            boolean ignoreOtherSeverity) {
    195196        if (ENGINE == null || value == null || value.trim().isEmpty()) {
    196197            return Collections.emptyList();
Note: See TracChangeset for help on using the changeset viewer.