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

        Hide
        Henri Yandell added a comment -

        svn ci -m "Fixing javadoc example and adding a unit test to prove the example; as
        reported in #LANG-278" src/test/org/apache/commons/lang/StringUtilsTest.java src/java/org/apache/commons/lang/StringUtils.java
        Sending src/java/org/apache/commons/lang/StringUtils.java
        Sending src/test/org/apache/commons/lang/StringUtilsTest.java
        Transmitting file data ..
        Committed revision 442618.

        Show
        Henri Yandell added a comment - svn ci -m "Fixing javadoc example and adding a unit test to prove the example; as reported in # LANG-278 " src/test/org/apache/commons/lang/StringUtilsTest.java src/java/org/apache/commons/lang/StringUtils.java Sending src/java/org/apache/commons/lang/StringUtils.java Sending src/test/org/apache/commons/lang/StringUtilsTest.java Transmitting file data .. Committed revision 442618.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development