Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-278 javadoc for StringUtils.removeEnd is incorrect
  3. LANG-384

javadoc is still buggy - the test is testing a different situation

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.3
    • 2.4
    • None
    • None

    Description

      the test is testing
      assertEquals(StringUtils.removeEnd("www.domain.com.", ".com"), "www.domain.com.");

      while the javadoc shows

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

      this is the fail for javadoc because
      StringUtils.removeEnd("www.domain.com", ".com.") returns "www.domain.com" ( without a dot )

      Attachments

        Activity

          People

            Unassigned Unassigned
            kretes Tomasz Bartczak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: