Ignore:
Timestamp:
2013-07-30T18:35:47+02:00 (11 years ago)
Author:
akks
Message:

see #8902 - collection size ==/!= 0 -> isEmpty()/!isEmpty() (patch by shinigami)

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

Legend:

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

    r4869 r6093  
    157157                }
    158158
    159                 if (highlight.size() > 0) {
     159                if (!highlight.isEmpty()) {
    160160                    errors.add(new TestError(this, Severity.ERROR, tr("Unconnected coastline"),
    161161                            UNCONNECTED_COASTLINE, primitives, highlight));
  • trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java

    r6068 r6093  
    109109            }
    110110        }
    111         if (allroles.size() == 0) {
     111        if (allroles.isEmpty()) {
    112112            errors.add( new TestError(this, Severity.WARNING, tr("Relation type is unknown"),
    113113                    RELATION_UNKNOWN, n) );
Note: See TracChangeset for help on using the changeset viewer.