commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1360) Add methods to ObjectUtils to get various forms of class names in a null-safe manner
Date Sat, 21 Oct 2017 16:56:00 GMT

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

Benedikt Ritter commented on LANG-1360:
---------------------------------------

But in ClassUtils we already have:

{code:java}
String getShortCanonicalName(final Object object, final String valueIfNull)
String getShortClassName(Object object, String valueIfNull)
String getSimpleName(Object object, String valueIfNull)
{code}

So I think it should be discussed on the ML whether these methods should be deprecated and
moved to ObjectUtils. I think it is okay to have them in ClassUtils, because they're dealing
with classes at the end of the day and there are overloads of the same name, which take Class
parameters.

> Add methods to ObjectUtils to get various forms of class names in a null-safe manner
> ------------------------------------------------------------------------------------
>
>                 Key: LANG-1360
>                 URL: https://issues.apache.org/jira/browse/LANG-1360
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>             Fix For: 3.7
>
>
> Add methods to ObjectUtils to get various forms of class names in a null-safe manner:
> - getClassName(Object)
> - getClassSimpleName(Object)
> - getClassCanonicalName(Object)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message