Changeset 3673 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
- Timestamp:
- 2010-11-25T13:01:58+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r3671 r3673 135 135 done.add(r.key); 136 136 String keyname = r.key; 137 if ( keyname == "") { //FIXME137 if ("".equals(keyname)) { 138 138 keyname = tr("<empty>"); 139 139 } … … 144 144 if (count == 0) { 145 145 String s = marktr("Role {0} missing"); 146 errors.add( 147 tr(s, keyname), MessageFormat.format(s, keyname), ROLE_MISSING, n) 146 errors.add(new TestError(this, Severity.WARNING, tr("Role verification problem"), 147 tr(s, keyname), MessageFormat.format(s, keyname), ROLE_MISSING, n)); 148 148 } 149 149 else if (vc > count) { 150 150 String s = marktr("Number of {0} roles too low ({1})"); 151 errors.add( 152 tr(s, keyname, count), MessageFormat.format(s, keyname, count), LOW_COUNT, n) 151 errors.add(new TestError(this, Severity.WARNING, tr("Role verification problem"), 152 tr(s, keyname, count), MessageFormat.format(s, keyname, count), LOW_COUNT, n)); 153 153 } else { 154 154 String s = marktr("Number of {0} roles too high ({1})"); 155 errors.add( 156 tr(s, keyname, count), MessageFormat.format(s, keyname, count), HIGH_COUNT, n) 155 errors.add(new TestError(this, Severity.WARNING, tr("Role verification problem"), 156 tr(s, keyname, count), MessageFormat.format(s, keyname, count), HIGH_COUNT, n)); 157 157 } 158 158 }
Note:
See TracChangeset
for help on using the changeset viewer.