RFR: 8338140: (str) Add notes to String.trim and String.isEmpty pointing to newer APIs [v2]

Stuart Marks smarks at openjdk.org
Thu Jun 12 00:53:13 UTC 2025


On Thu, 12 Jun 2025 00:35:12 GMT, Stuart Marks <smarks at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/String.java line 3937:
>> 
>>> 3935: 
>>> 3936:     /**
>>> 3937:      * Returns {@code true} if the string is empty or contains only
>> 
>> This method seems like a good candidate to use `{@return ...}`.
>
> I'll give this a try.

Thanks, this is a nice simplification.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25762#discussion_r2141318925


More information about the core-libs-dev mailing list