Use the @return inline tag

This commit is contained in:
Liam Miller-Cushon 2026-01-15 14:36:46 +01:00
parent 972553f5f3
commit cf4e59f3f6

View File

@ -2130,14 +2130,13 @@ public final class String
}
/**
* Returns the length in bytes of the given String encoded with the given {@link Charset}.
* {@return the length in bytes of the given String encoded with the given {@link Charset}}
*
* <p>The result will be the same value as {@code getBytes(charset).length}.
*
* @implNote This method may allocate memory to compute the length for some charsets.
*
* @param cs the {@link Charset} used to the compute the length
* @return the length in bytes of the given String encoded with the given {@link Charset}
* @since 27
*/
public int getBytesLength(Charset cs) {