RFR: 8277348: Use String.stripTrailing() in jdk.jshell where applicable
Andrey Turbanov
aturbanov at openjdk.java.net
Wed Mar 30 21:11:47 UTC 2022
On Fri, 12 Nov 2021 09:10:16 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> There are 2 methods in jdk.jshell module which trim trailing whitespace characters from String.
> 1. jdk.internal.jshell.tool.JShellTool#trimEnd
> 2. jdk.jshell.Util#trimEnd
>
> Since Java 11 we have a method String.stripTrailing which could be used instead.
Let's wait for reviewers a bit more
-------------
PR: https://git.openjdk.java.net/jdk/pull/6365
More information about the kulla-dev
mailing list