jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380030 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java
Date Sun, 02 Sep 2012 18:47:07 GMT
Author: pmouawad
Date: Sun Sep  2 18:47:07 2012
New Revision: 1380030

URL: http://svn.apache.org/viewvc?rev=1380030&view=rev
Log:
Add brackets on if/else

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java?rev=1380030&r1=1380029&r2=1380030&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java Sun Sep  2 18:47:07
2012
@@ -123,11 +123,11 @@ public class TestBeanHelper {
         // value was not provided, and this is allowed
         else if (jprop instanceof NullProperty &&
                 // use negative condition so missing (null) value is treated as FALSE
-                ! Boolean.TRUE.equals(desc.getValue(GenericTestBeanCustomizer.NOT_UNDEFINED)))
-        {    
+                ! Boolean.TRUE.equals(desc.getValue(GenericTestBeanCustomizer.NOT_UNDEFINED)))
{    
             value=null;
+        } else {
+            value = Converter.convert(jprop.getStringValue(), type);
         }
-        else value = Converter.convert(jprop.getStringValue(), type);
         return value;
     }
 



Mime
View raw message