You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2009/03/04 01:36:02 UTC

svn commit: r749860 - /jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java

Author: sebb
Date: Wed Mar  4 00:36:01 2009
New Revision: 749860

URL: http://svn.apache.org/viewvc?rev=749860&view=rev
Log:
Better to throw RTE than return null from clone()

Modified:
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java?rev=749860&r1=749859&r2=749860&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java Wed Mar  4 00:36:01 2009
@@ -453,8 +453,7 @@
             return clone;
         }
         catch(CloneNotSupportedException e) {
-            // this should not happen
-            return null;
+            throw new RuntimeException("Should not happen",e);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org