commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <>
Subject [jira] [Commented] (LANG-1093) Add ClassUtils.getAbbreviatedName
Date Thu, 12 Mar 2015 12:51:38 GMT


Benedikt Ritter commented on LANG-1093:

Hello Fabian,

bq. On the other hand I thought, if its inspired by the quirky API, then I could keep also
that edge case?

Now is our chance to resolve the quirkiness ;-) If a user only wants the class name without
any package information, she can use {{getShortClassName}}. So {{len <= 0 -> IAE}}?

bq. The null cause is "covered" the same way as the other methds do it by saying "or an empty
string" for return.

Yes, and I agree with that behavior. I only would like to see this case show up in the JavaDoc
table of examples.

> Add ClassUtils.getAbbreviatedName
> ---------------------------------
>                 Key: LANG-1093
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Fabian Lange
>              Labels: github
>             Fix For: Review Patch
> 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

View raw message