Skip to content

Commit c331877

Browse files
committed
HHH-18675: Revert to java 11
1 parent f7a8473 commit c331877

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/manytomany/generic/ManyToManyNonGenericTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.util.List;
2626
import java.util.Set;
2727
import java.util.UUID;
28+
import java.util.stream.Collectors;
2829

2930
import static org.hamcrest.MatcherAssert.assertThat;
3031
import static org.hamcrest.Matchers.containsInAnyOrder;
@@ -102,7 +103,7 @@ public Set<Node> getChildren() {
102103

103104
@Override
104105
public String toString() {
105-
return "node [%s] parent of %s".formatted(id, children.stream().map(n -> n.id).toList());
106+
return String.format("node [%s] parent of %s", id, children.stream().map(n -> n.id).collect(Collectors.toList()));
106107
}
107108
}
108109
}

0 commit comments

Comments
 (0)