commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r1510016 - /commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
Date Sat, 03 Aug 2013 15:48:47 GMT
Author: jcarman
Date: Sat Aug  3 15:48:46 2013
New Revision: 1510016

URL: http://svn.apache.org/r1510016
Log:
Preserving stack trace in exception.

Modified:
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java?rev=1510016&r1=1510015&r2=1510016&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
(original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
Sat Aug  3 15:48:46 2013
@@ -56,11 +56,12 @@ public class CloningProvider<T extends C
      */
     public CloningProvider(T cloneable)
     {
+        Validate.notNull(cloneable, "Cloneable object cannot be null.");
         Validate.isTrue(
                 MethodUtils.getAccessibleMethod(cloneable.getClass(), "clone") != null,
                 String.format("Class %s does not override clone() method as public.",
                         cloneable.getClass().getName()));
-        this.cloneable = Validate.notNull(cloneable, "Cloneable object cannot be null.");
+        this.cloneable = cloneable;
     }
 
     //**********************************************************************************************************************



Mime
View raw message