Ignore:
Timestamp:
2024-06-20T15:55:07+02:00 (4 months ago)
Author:
taylor.smock
Message:

See #17858: Update code for newer Java features

Also add a note that toUnmodifiableList does not like nulls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergerTestFT.java

    r17275 r19120  
    33
    44import java.awt.BorderLayout;
    5 import java.util.stream.Collectors;
    6 import java.util.stream.IntStream;
    75
    86import javax.swing.JFrame;
     
    2422            n1.put("key" + i, "value" + i);
    2523        }
    26         // Java 11: use String.repeat
    27         String note = IntStream.range(0, 50).mapToObj(i -> " A very long text ").collect(Collectors.joining());
     24        String note = " A very long text ".repeat(50);
    2825        n1.put("note", note);
    2926        w1.addNode(new Node(2));
Note: See TracChangeset for help on using the changeset viewer.