commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r928465 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ObjectUtils.java
Date Sun, 28 Mar 2010 18:17:49 GMT
Author: bayard
Date: Sun Mar 28 18:17:48 2010
New Revision: 928465

URL: http://svn.apache.org/viewvc?rev=928465&view=rev
Log:
Minor language tweaks (LANG-576)

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ObjectUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ObjectUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ObjectUtils.java?rev=928465&r1=928464&r2=928465&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ObjectUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ObjectUtils.java Sun
Mar 28 18:17:48 2010
@@ -345,12 +345,11 @@ public class ObjectUtils {
 
     /**
      * Clone an object if possible. This method is similar to {@link #clone(Object)}, but
will
-     * return the provided instance as return value instead of <code>null</code>
if the instance
-     * is not cloneable. This is convenient in case the caller will use different
-     * implementations (e.g. of a service) and some of the instances do not allow concurrent
-     * processing or have state. In such a case the implementation can simply provide a proper
-     * clone implementation and the caller has not to take care, it will simply call this
method
-     * here.
+     * return the provided instance as the return value instead of <code>null</code>
if the instance
+     * is not cloneable. This is more convenient if the caller uses different
+     * implementations (e.g. of a service) and some of the implementations do not allow concurrent
+     * processing or have state. In such cases the implementation can simply provide a proper
+     * clone implementation and the caller's code does not have to change.
      * 
      * @param <T> the type of the object
      * @param o the object to clone



Mime
View raw message