Changeset 8540 in josm for trunk/src/org/openstreetmap/josm/data/validation
- Timestamp:
- 2015-06-27T21:43:35+02:00 (9 years ago)
- 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 27 27 28 28 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")); 31 32 private static final Set<String> RESTRICTION_VALUES = new HashSet<>(Arrays.asList("yes", "official", "designated", "destination", 32 33 "delivery", "permissive", "private", "agricultural", "forestry", "no")); -
trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
r8509 r8540 93 93 } 94 94 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. 96 97 testSourceMaxspeed(n, false); 97 98 } … … 209 210 } 210 211 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)); 212 214 return; 213 215 } … … 244 246 String country = value.substring(0, index); 245 247 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)); 247 250 } 248 251 // Check context -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r8510 r8540 431 431 final StringBuffer sb = new StringBuffer(); 432 432 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); 434 435 try { 435 436 // Perform replacement with null-safe + regex-safe handling -
trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java
r8510 r8540 192 192 * @return a list of {@link TestError} or an empty list 193 193 */ 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) { 195 196 if (ENGINE == null || value == null || value.trim().isEmpty()) { 196 197 return Collections.emptyList();
Note:
See TracChangeset
for help on using the changeset viewer.