Changeset 16360 in josm for trunk/src/org
- Timestamp:
- 2020-04-19T15:13:08+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r16273 r16360 538 538 * 539 539 * @param p the primitive to construct the error for 540 * @param matchingSelector the matching selector (e.g., obtained via {@link #whichSelectorMatchesPrimitive}) 541 * @param env the environment 542 * @param tester the tester 540 543 * @return an instance of {@link TestError}, or returns null if the primitive does not give rise to an error. 541 544 */ 542 List<TestError> getErrorsForPrimitive(OsmPrimitive p) { 543 final Environment env = new Environment(p); 544 return getErrorsForPrimitive(p, whichSelectorMatchesEnvironment(env), env, null); 545 } 546 547 private List<TestError> getErrorsForPrimitive(OsmPrimitive p, Selector matchingSelector, Environment env, Test tester) { 545 protected List<TestError> getErrorsForPrimitive(OsmPrimitive p, Selector matchingSelector, Environment env, Test tester) { 548 546 List<TestError> res = new ArrayList<>(); 549 547 if (matchingSelector != null && !errors.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.