Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277348

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • None
    • 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.

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

              Created:
              Updated: