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

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: https://issues.apache.org/jira/browse/LANG-1093
>             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
(v6.3.4#6332)

Reply via email to