commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LANG-1064) StringUtils.abbreviate description doesn't agree with the examples
Date Mon, 06 Apr 2015 17:29:19 GMT

     [ 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)

Mime
View raw message