You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2015/04/06 19:29:19 UTC

[jira] [Closed] (LANG-1064) StringUtils.abbreviate description doesn't agree with the examples

     [ https://issues.apache.org/jira/browse/LANG-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benedikt Ritter closed LANG-1064.
---------------------------------

> StringUtils.abbreviate description doesn't agree with the examples
> ------------------------------------------------------------------
>
>                 Key: LANG-1064
>                 URL: https://issues.apache.org/jira/browse/LANG-1064
>             Project: Commons Lang
>          Issue Type: Bug
>            Reporter: B.J. Herbison
>            Assignee: Duncan Jones
>             Fix For: 3.4
>
>
> https://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/StringUtils.html#abbreviate%28java.lang.String,%20int%29
> {quote}
> If str is less than maxWidth characters long, return it.
> Else abbreviate it to (substring(str, 0, max-3) + "...").
> {quote}
> {quote}
> StringUtils.abbreviate("abcdefg", 7) = "abcdefg"
> {quote}
> The first element of the description probably means "less than or equal to"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)