commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1093) Add ClassUtils.getAbbreviatedName
Date Thu, 12 Mar 2015 10:28:41 GMT

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

ASF GitHub Bot commented on LANG-1093:
--------------------------------------

GitHub user CodingFabian opened a pull request:

    https://github.com/apache/commons-lang/pull/48

    LANG-1093 - Add ClassUtils.getAbbreviatedName()

    getAbbreviatedName() allows to create a short version of a class name.
    It accepts a parameter which gives the desired length, but ClassUtils will
    make sure that the result keeps most of its meaning, which can result in
    shorter or longer abbreviations than requested.
    
    This pattern is applied by logging frameworks and generally accepted to produce
    nice and understandable abbreviations.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/CodingFabian/commons-lang abbreviateClassName

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/48.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #48
    
----
commit 4eaba0fee42c7746d5e71ef9096d508c070ec41e
Author: Fabian Lange <lange.fabian@gmail.com>
Date:   2015-03-12T10:21:03Z

    LANG-1093 - Add ClassUtils.getAbbreviatedName()
    
    getAbbreviatedName() allows to create a short version of a class name.
    It accepts a parameter which gives the desired length, but ClassUtils will
    make sure that the result keeps most of its meaning, which can result in
    shorter or longer abbreviations than requested.
    
    This pattern is applied by logging frameworks and generally accepted to produce
    nice and understandable abbreviations.

----


> Add ClassUtils.getAbbreviatedName
> ---------------------------------
>
>                 Key: LANG-1093
>                 URL: https://issues.apache.org/jira/browse/LANG-1093
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Fabian Lange
>
> It would be really nice to have a class name shortener functionality available similar
to what some logger frameworks use.
> I took the idea for my implementation from logback, including the quirky treatment of
the desired length argument, feel free to discuss on the PR/here.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message