Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1426

JavaDoc issue on StringUtils.truncate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 3.10
    • None
    • None

    Description

      Two of the examples on the method StringUtils.truncate(String, int, int) are incorrect:

      • StringUtils.truncate("abcdefghijklmno", Integer.MIN_VALUE, 10) = "abcdefghij"
      • StringUtils.truncate("abcdefghijklmno", Integer.MIN_VALUE, Integer.MAX_VALUE) = "abcdefghijklmno"

      Both of the above actually throw IllegalArgumentException's.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Brower Jeff
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m