JDK-8200377 : String::strip, String::stripLeading, String::stripTrailing
  • Type: New Feature
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Fix Versions: 11
  • Submitted: 2018-03-28
  • Updated: 2018-06-01
  • Resolved: 2018-05-14
Related Reports
CSR :  
Duplicate :  
Relates :  
Description
This feature introduces three String instance methods for removal of white space from the beginning and end of a string.  Unlike String::trim, these methods use the Unicode definition of white space. Specifically, these methods use Character.isWhitespace(int codePoint) to detect space characters.