jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380320 - /jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java
Date Mon, 03 Sep 2012 19:40:52 GMT
Author: pmouawad
Date: Mon Sep  3 19:40:52 2012
New Revision: 1380320

URL: http://svn.apache.org/viewvc?rev=1380320&view=rev
Log:
use parseBoolean instead of Wrapper creation

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java?rev=1380320&r1=1380319&r2=1380320&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/BeanShellAssertion.java Mon Sep
 3 19:40:52 2012
@@ -104,8 +104,8 @@ public class BeanShellAssertion extends 
             processFileOrScript(bshInterpreter);
 
             result.setFailureMessage(bshInterpreter.get("FailureMessage").toString());//$NON-NLS-1$
-            result.setFailure(Boolean.valueOf(bshInterpreter.get("Failure") //$NON-NLS-1$
-                    .toString()).booleanValue());
+            result.setFailure(Boolean.parseBoolean(bshInterpreter.get("Failure") //$NON-NLS-1$
+                    .toString()));
             result.setError(false);
         }
         /*



Mime
View raw message