Commons Lang
  1. Commons Lang
  2. LANG-278

javadoc for StringUtils.removeEnd is incorrect

    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

      The javadoc for StringUtils.removeEnd(String, String) lists a number of examples, one of which is wrong:

      StringUtils.removeEnd("www.domain.com", ".com.") = "www,domain"

      The actual result of this is just "www.domain.com"

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development