Ignore:
Timestamp:
2020-11-29T10:33:58+01:00 (3 years ago)
Author:
GerdP
Message:

see #20167: [patch] Improve code readability by replacing indexed loops with foreach
Patch by gaben, slightly modified
I removed the changes for

  • GpxImageCorrelation.java, they introduce a TODO
  • ConnectivityRelations.java (no improvement in readability)
File:
1 edited

Legend:

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

    r16955 r17374  
    15101510        }
    15111511        Bidi.reorderVisually(levels, 0, dirStrings, 0, levels.length);
    1512         for (int i = 0; i < dirStrings.length; ++i) {
    1513             char[] chars = dirStrings[i].str.toCharArray();
    1514             gvs.add(font.layoutGlyphVector(frc, chars, 0, chars.length, dirStrings[i].direction));
     1512        for (DirectionString dirString : dirStrings) {
     1513            char[] chars = dirString.str.toCharArray();
     1514            gvs.add(font.layoutGlyphVector(frc, chars, 0, chars.length, dirString.direction));
    15151515        }
    15161516        return gvs;
Note: See TracChangeset for help on using the changeset viewer.