You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (Jira)" <ji...@apache.org> on 2019/09/25 14:48:00 UTC
[jira] [Resolved] (LANG-1426) JavaDoc issue on StringUtils.truncate
[ https://issues.apache.org/jira/browse/LANG-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory resolved LANG-1426.
--------------------------------
Fix Version/s: 3.10
Resolution: Fixed
In git master. Please verify and close.
> JavaDoc issue on StringUtils.truncate
> -------------------------------------
>
> Key: LANG-1426
> URL: https://issues.apache.org/jira/browse/LANG-1426
> Project: Commons Lang
> Issue Type: Bug
> Reporter: Jeff
> Priority: Trivial
> Fix For: 3.10
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)