commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (LANG-1480) ClassUtils. getAbbreviatedName(String ,int) returns too long result
Date Sun, 06 Oct 2019 14:48:00 GMT


ASF GitHub Bot logged work on LANG-1480:

                Author: ASF GitHub Bot
            Created on: 06/Oct/19 14:47
            Start Date: 06/Oct/19 14:47
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on issue #446: LANG-1480 getAbbreviatedName refactored
to create appropriate length …
   [![Coverage Status](](
   Coverage decreased (-0.005%) to 95.21% when pulling **63802bf3d5423a8abdc098549b472622a7a43772
on verhas:LANG-1480** into **24f66b175fdbc37c02ac234f1f3d7b2a5f13cc57 on apache:master**.
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

            Worklog Id:     (was: 324053)
    Remaining Estimate: 16.5h  (was: 16h 40m)
            Time Spent: 7.5h  (was: 7h 20m)

> ClassUtils. getAbbreviatedName(String ,int) returns too long result
> -------------------------------------------------------------------
>                 Key: LANG-1480
>                 URL:
>             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: 7.5h
>  Remaining Estimate: 16.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

View raw message