Use String.stripTrailing() in jdk.jshell where applicable

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • tbd
    • Affects Version/s: None
    • Component/s: tools
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: