Commons Lang
  1. Commons Lang
  2. LANG-261

Error in an example in the javadoc of the StringUtils.splitPreserveAllTokens() method

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: lang.*
    • Labels:
      None

      Description

      There is an error in the javadoc of the org.apache.commons.lang.StringUtils.splitPreserveAllTokens(String str,char separatorChar) method.

      Here the original line :
      StringUtils.splitPreserveAllTokens("a..b.c", '.') = ["a", "b", "c"]

      But it should be :
      StringUtils.splitPreserveAllTokens("a..b.c", '.') = ["a", "", "b", "c"]

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Cimballi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development