Ignore:
Timestamp:
2020-05-17T14:18:22+02:00 (4 years ago)
Author:
simon04
Message:

see #19251 - Java 8: use Stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/UTMFranceDOMProjectionChoice.java

    r12620 r16438  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.util.Arrays;
    67import java.util.Collection;
    78import java.util.Collections;
     
    6465    @Override
    6566    public String[] allCodes() {
    66         String[] res = new String[UTM_EPSGS.length];
    67         for (int i = 0; i < UTM_EPSGS.length; ++i) {
    68             res[i] = "EPSG:" + UTM_EPSGS[i];
    69         }
    70         return res;
     67        return Arrays.stream(UTM_EPSGS).map(utmEpsg -> "EPSG:" + utmEpsg).toArray(String[]::new);
    7168    }
    7269
Note: See TracChangeset for help on using the changeset viewer.