Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
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
- links to