Ignore:
Timestamp:
2014-04-19T00:36:43+02:00 (5 years ago)
Author:
Don-vip
Message:

sonar - place Strings literals on the left side when checking for equality (can avoid NPEs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r6920 r6990  
    136136        String sSeconds = cDmsSecondFormatter.format(tSeconds);
    137137
    138         if (sSeconds.equals(cDms60)) {
     138        if (cDms60.equals(sSeconds)) {
    139139            sSeconds = cDms00;
    140140            sMinutes = cDmsMinuteFormatter.format(tMinutes+1);
    141141        }
    142         if (sMinutes.equals("60")) {
     142        if ("60".equals(sMinutes)) {
    143143            sMinutes = "00";
    144144            sDegrees = Integer.toString(tDegree+1);
Note: See TracChangeset for help on using the changeset viewer.