Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (12 years ago)
Author:
Don-vip
Message:

see #8465 - use diamond operator where applicable

Location:
trunk/test/unit/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java

    r6995 r7005  
    3333     */
    3434    public static void main(String[] args) {
    35         Map<String, Projection> allCodes = new HashMap<String, Projection>();
     35        Map<String, Projection> allCodes = new HashMap<>();
    3636        for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) {
    3737            for (String code : pc.allCodes()) {
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r6995 r7005  
    5858        setUp();
    5959
    60         Map<String, Projection> supportedCodesMap = new HashMap<String, Projection>();
     60        Map<String, Projection> supportedCodesMap = new HashMap<>();
    6161        for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) {
    6262            for (String code : pc.allCodes()) {
     
    6868        }
    6969
    70         List<TestData> prevData = new ArrayList<TestData>();
     70        List<TestData> prevData = new ArrayList<>();
    7171        if (new File(PROJECTION_DATA_FILE).exists()) {
    7272            prevData = readData();
    7373        }
    74         Map<String,TestData> prevCodesMap = new HashMap<String,TestData>();
     74        Map<String,TestData> prevCodesMap = new HashMap<>();
    7575        for (TestData data : prevData) {
    7676            prevCodesMap.put(data.code, data);
    7777        }
    7878
    79         Set<String> codesToWrite = new LinkedHashSet<String>();
     79        Set<String> codesToWrite = new LinkedHashSet<>();
    8080        for (TestData data : prevData) {
    8181            if (supportedCodesMap.containsKey(data.code)) {
     
    116116    private static List<TestData> readData() throws IOException, FileNotFoundException {
    117117        BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(PROJECTION_DATA_FILE), Utils.UTF_8));
    118         List<TestData> result = new ArrayList<TestData>();
     118        List<TestData> result = new ArrayList<>();
    119119        String line;
    120120        while ((line = in.readLine()) != null) {
     
    159159    public void regressionTest() throws IOException, FileNotFoundException {
    160160        List<TestData> allData = readData();
    161         Set<String> dataCodes = new HashSet<String>();
     161        Set<String> dataCodes = new HashSet<>();
    162162        for (TestData data : allData) {
    163163            dataCodes.add(data.code);
Note: See TracChangeset for help on using the changeset viewer.