RFR: 8277348: Use String.stripTrailing() in jdk.jshell where applicable [v2]
Andrey Turbanov
aturbanov at openjdk.org
Sat Oct 29 10:00:24 UTC 2022
> 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.
Andrey Turbanov has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
- 8277348: Use String.stripTrailing() in jdk.jshell where applicable
update copyright year
- Merge remote-tracking branch 'origin/master' into use_String.stripTrailing_in_jdk.jshell
# Conflicts:
# src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java
- [PATCH] Use String.stripTrailing() in jdk.jshell where applicable
-------------
Changes: https://git.openjdk.org/jdk/pull/6365/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=6365&range=01
Stats: 43 lines in 4 files changed: 0 ins; 33 del; 10 mod
Patch: https://git.openjdk.org/jdk/pull/6365.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/6365/head:pull/6365
PR: https://git.openjdk.org/jdk/pull/6365
More information about the kulla-dev
mailing list