commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-446) Add null-safe ObjectUtils.clone()
Date Sun, 22 Jun 2008 04:07:44 GMT

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

Paul Benedict commented on LANG-446:
------------------------------------

Because clone() is part of Java's standard object methods, it should belong in ObjectUtils
too, if not anymore than to delegate to a known CloneUtils method. No checked exceptions please
and allow null-safety.

> Add null-safe ObjectUtils.clone()
> ---------------------------------
>
>                 Key: LANG-446
>                 URL: https://issues.apache.org/jira/browse/LANG-446
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.0
>
>
> If null, return null.
> If not implementing Cloneable, throw exception.
> Otherwise reflectively invoke a *public* clone().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message