Skip to content

Commit 9d15438

Browse files
dfuchMarcono1234
andauthored
Update test/jdk/java/net/UnixDomainSocketAddress/LengthTest.java
Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
1 parent 5ff87a5 commit 9d15438

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎test/jdk/java/net/UnixDomainSocketAddress/LengthTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public static List<String> strings() {
5151

5252
return List.of(
5353
"",
54-
new String(new char[100]).replaceAll("\0", "x"),
55-
new String(new char[namelen]).replaceAll("\0", "x"),
56-
new String(new char[namelen-1]).replaceAll("\0", "x")
54+
"x".repeat(100),
55+
"x".repeat(namelen),
56+
"x".repeat(namelen - 1)
5757
);
5858
}
5959

0 commit comments

Comments
 (0)