[ 
https://issues.apache.org/jira/browse/LANG-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16891886#comment-16891886
 ] 

oota commented on LANG-1463:
----------------------------

I am not good at English and I use a translation site.
StringUtils.abbreviate behaves the same as NULL if the second argument 
abbrevMarker is empty.

> StringUtils abbreviate returns String of length greater than maxWidth
> ---------------------------------------------------------------------
>
>                 Key: LANG-1463
>                 URL: https://issues.apache.org/jira/browse/LANG-1463
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.9
>            Reporter: Thomas Wessendorf
>            Priority: Minor
>
> In the JavaDoc of StringUtils.abbreviate(final String str, final String 
> abbrevMarker, final int maxWidth) is written, that the method in no case will 
> return a String of length greater than maxWidth. This doesn't hold, if 
> abbrevMarker is an empty string.
> Expected behaviour:
> abbreviate("much too long text", "", 13).equals("much too long")
>  
> Actual behaviour:
> abbreviate("much too long text", "", 13).equals("much too long text")



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to