You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "B.J. Herbison (JIRA)" <ji...@apache.org> on 2014/11/14 13:07:34 UTC

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

B.J. Herbison created LANG-1064:
-----------------------------------

             Summary: 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


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)