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

        Mark Thomas made changes -
        Workflow jira [ 12383482 ] Default workflow, editable Closed status [ 12602180 ]
        Henri Yandell made changes -
        Component/s lang.* [ 12313203 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2 [ 12311702 ]
        Kenny MacLeod created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development