From 77bc5b9e3475ea2a4db1bd4f98eb30c41f52bcd9 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Tue, 20 Jan 2026 11:14:43 +0100 Subject: [PATCH] Remove paragraph break --- src/java.base/share/classes/java/lang/String.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/java.base/share/classes/java/lang/String.java b/src/java.base/share/classes/java/lang/String.java index ad1e2d3873b..a0617920e47 100644 --- a/src/java.base/share/classes/java/lang/String.java +++ b/src/java.base/share/classes/java/lang/String.java @@ -2107,9 +2107,8 @@ public final class String * {@return the length in bytes of the given String encoded with the given {@link Charset}} * *

The returned length accounts for the replacement of malformed-input and unmappable-character - * sequences with the charset's default replacement byte array. - * - *

The result will be the same value as {@link #getBytes(Charset) getBytes(cs).length}. + * sequences with the charset's default replacement byte array. The result will be the same value + * as {@link #getBytes(Charset) getBytes(cs).length}. * * @apiNote This method provides equivalent or better performance than {@link #getBytes(Charset) * getBytes(cs).length}. It may allocate memory to compute the length for some charsets.