Index: trunk/test/functional/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergerTestFT.java
===================================================================
--- trunk/test/functional/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergerTestFT.java	(revision 19118)
+++ trunk/test/functional/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergerTestFT.java	(revision 19120)
@@ -3,6 +3,4 @@
 
 import java.awt.BorderLayout;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
 
 import javax.swing.JFrame;
@@ -24,6 +22,5 @@
             n1.put("key" + i, "value" + i);
         }
-        // Java 11: use String.repeat
-        String note = IntStream.range(0, 50).mapToObj(i -> " A very long text ").collect(Collectors.joining());
+        String note = " A very long text ".repeat(50);
         n1.put("note", note);
         w1.addNode(new Node(2));
Index: trunk/test/unit/org/openstreetmap/josm/data/osm/ChangesetTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/osm/ChangesetTest.java	(revision 19118)
+++ trunk/test/unit/org/openstreetmap/josm/data/osm/ChangesetTest.java	(revision 19120)
@@ -14,6 +14,4 @@
 import java.util.HashMap;
 import java.util.Map;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
 
 import org.junit.jupiter.api.Test;
@@ -57,6 +55,5 @@
         // Add a map with too long values => IllegalArgumentException
         keys = new HashMap<>();
-        // Java 11: use String.repeat
-        keys.put("test", IntStream.range(0, MAX_CHANGESET_TAG_LENGTH + 1).mapToObj(i -> "x").collect(Collectors.joining()));
+        keys.put("test", "x".repeat(MAX_CHANGESET_TAG_LENGTH + 1));
         try {
             cs.setKeys(keys);
