jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380048 - /jmeter/trunk/src/core/org/apache/jmeter/testelement/property/BooleanProperty.java
Date Sun, 02 Sep 2012 20:21:00 GMT
Author: pmouawad
Date: Sun Sep  2 20:21:00 2012
New Revision: 1380048

URL: http://svn.apache.org/viewvc?rev=1380048&view=rev
Log:
Use parseBoolean instead of creating useless wrapper

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testelement/property/BooleanProperty.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testelement/property/BooleanProperty.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/BooleanProperty.java?rev=1380048&r1=1380047&r2=1380048&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testelement/property/BooleanProperty.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testelement/property/BooleanProperty.java Sun
Sep  2 20:21:00 2012
@@ -43,7 +43,7 @@ public class BooleanProperty extends Abs
         if (v instanceof Boolean) {
             value = ((Boolean) v).booleanValue();
         } else {
-            value = Boolean.valueOf(v.toString()).booleanValue();
+            value = Boolean.parseBoolean(v.toString());
         }
     }
 



Mime
View raw message