Changeset 7570 in josm for trunk/src


Ignore:
Timestamp:
2014-09-20T21:19:54+02:00 (10 years ago)
Author:
bastiK
Message:

see #10529 - remove duplicate test (same as NO_STYLE_POLYGON)

File:
1 edited

Legend:

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

    r7569 r7570  
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
     5import static org.openstreetmap.josm.tools.I18n.trn;
    56
    67import java.awt.geom.GeneralPath;
     
    5455    protected static final int NO_STYLE = 1610;
    5556    protected static final int NO_STYLE_POLYGON = 1611;
    56     protected static final int STYLE_ON_WAY = 1612;
    5757    protected static final int OUTER_STYLE = 1613;
    5858
     
    221221                    if (!"boundary".equals(r.get("type"))) {
    222222                        if (area == null) {
    223                             addError(r, new TestError(this, Severity.OTHER, tr("No style for multipolygon"), NO_STYLE, r));
     223                            addError(r, new TestError(this, Severity.OTHER, tr("No area style for multipolygon"), NO_STYLE, r));
    224224                        } else {
    225                             addError(r, new TestError(this, Severity.OTHER, tr("No style in multipolygon relation"),
     225                            /* old style multipolygon - solve: copy tags from outer way to multipolygon */
     226                            addError(r, new TestError(this, Severity.OTHER,
     227                                    trn("Multipolygon relation should be tagged with area tags and not the outer way",
     228                                            "Multipolygon relation should be tagged with area tags and not the outer ways", polygon.getOuterWays().size()),
    226229                                NO_STYLE_POLYGON, r));
    227230                        }
     
    257260                        }
    258261                    }
    259                     if(!areaStyle) { /* old style multipolygon - solve: copy tags from outer way to multipolygon */
    260                         addError(r, new TestError(this, Severity.WARNING, tr("Style is on way and not on multipolygon"), STYLE_ON_WAY, r));
    261                     }
    262262                }
    263263            }
Note: See TracChangeset for help on using the changeset viewer.