Ignore:
Timestamp:
2020-11-29T10:33:58+01:00 (5 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/data/validation/tests/DuplicateNode.java

    r17096 r17374  
    156156     * Returns the list of "duplicate nodes" errors for the given selection of node and parent test
    157157     * @param parentTest The parent test of returned errors
    158      * @param nodes The nodes selction to look into
     158     * @param nodes The nodes selection to look into
    159159     * @return the list of "duplicate nodes" errors
    160160     */
     
    187187                                Way w = (Way) sp;
    188188                                Map<String, String> keys = w.getKeys();
    189                                 for (Iterator<Entry<String, Boolean>> itt = typeMap.entrySet().iterator(); itt.hasNext();) {
    190                                     Entry<String, Boolean> e = itt.next();
     189                                for (Entry<String, Boolean> e : typeMap.entrySet()) {
    191190                                    if (keys.containsKey(e.getKey())) {
    192191                                        e.setValue(Boolean.TRUE);
Note: See TracChangeset for help on using the changeset viewer.