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

Peter Verhas commented on LANG-1480:
------------------------------------

As for the Travis issue:

I fixed the import * to the original as part of the accidental reformatting.
The other Travis issues are related to Functions.java that contains tabs 
instead of spaces, which is not part of this pull request. I did not change 
that. Seems like some error in the master. PLEASE HELP

Note: Fact is that the change in Functions.java was suggested by me. But I did 
not develop it. Somebody else of the team developed it and not the way I 
suggested and it still got merged into the master. When I will have time I will 
open a separate ticket, make the code simpler and create a pull request, but 
that is a totally different issue.

> ClassUtils. getAbbreviatedName(String ,int) returns too long result
> -------------------------------------------------------------------
>
>                 Key: LANG-1480
>                 URL: https://issues.apache.org/jira/browse/LANG-1480
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.9
>         Environment: Environment independent.
>            Reporter: Peter Verhas
>            Assignee: Bruno P. Kinoshita
>            Priority: Major
>   Original Estimate: 24h
>          Time Spent: 3.5h
>  Remaining Estimate: 20.5h
>
> In some cases, the algorithm decides incorrectly when to which package names 
> to abbreviate. For example, abbreviating
> {{org.apache.commons.lang3.ClassUtils}} to the length 18 will result 
> {{o.a.c.lang3.ClassUtils}} (22 characters) instead of {{o.a.c.l.ClassUtils}} 
> (18 characters as requested). The reason for this is that the algorithm 
> starts from the right and goes to the left abbreviating the packages and 
> starts to abbreviate the packages when it runs out of the available space.
> Instead, the algorithm should start from the left and abbreviate all packages 
> that would result in a too-long string without abbreviating the package name.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to