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

String.trim() description is misleading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.1.5, 1.2.0
    • docs
    • beta
    • x86
    • solaris_2.6, windows_95



      Name: diC59631 Date: 05/29/98


      The String.trim() documentation states:
      "Removes white space from both ends of this string."

      The String class description says:
      "Strings are constant; their values cannot be changed after they are created."

      These two statements are inconsistent. It would be
      better to if the trim() doc said something like
      "returns a copy of the string, with leading and
      trailing whitespace omitted".
      (Review ID: 26103)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: