Ignore:
Timestamp:
2016-10-08T23:50:28+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - squid:S2189 - Loops should not be infinite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r10757 r11107  
    792792                otherStart = j;
    793793
    794                 for (;;) {
     794                boolean loop = true;
     795                while (loop) {
    795796                    /* Now find the end of this run of changes.  */
    796797
     
    819820                        ++j;
    820821                    } else {
    821                         break;
     822                        loop = false;
    822823                    }
    823824                }
Note: See TracChangeset for help on using the changeset viewer.