Ignore:
Timestamp:
2010-11-25T13:01:58+01:00 (13 years ago)
Author:
bastiK
Message:

(hopefully) fix some coding errors

File:
1 edited

Legend:

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

    r3671 r3673  
    135135                    done.add(r.key);
    136136                    String keyname = r.key;
    137                     if (keyname == "") { //FIXME
     137                    if ("".equals(keyname)) {
    138138                        keyname = tr("<empty>");
    139139                    }
     
    144144                        if (count == 0) {
    145145                            String s = marktr("Role {0} missing");
    146                             errors.add( new TestError(this, Severity.WARNING, tr("Role verification problem"),
    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));
    148148                        }
    149149                        else if (vc > count) {
    150150                            String s = marktr("Number of {0} roles too low ({1})");
    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) );
     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));
    153153                        } else {
    154154                            String s = marktr("Number of {0} roles too high ({1})");
    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) );
     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));
    157157                        }
    158158                    }
Note: See TracChangeset for help on using the changeset viewer.