jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1335209 - /jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
Date Mon, 07 May 2012 19:26:26 GMT
Author: pmouawad
Date: Mon May  7 19:26:26 2012
New Revision: 1335209

URL: http://svn.apache.org/viewvc?rev=1335209&view=rev
Log:
Fix findbugs warning on new Boolean

Modified:
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java

Modified: jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java?rev=1335209&r1=1335208&r2=1335209&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
(original)
+++ jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
Mon May  7 19:26:26 2012
@@ -68,6 +68,8 @@ public class SystemSampler extends Abstr
             Arrays.asList(new String[]{
                     "org.apache.jmeter.config.gui.SimpleConfigGui"}));
 
+    public static final int DEFAULT_RETURN_CODE = 0;
+
 
     /**
      * Create a SystemSampler.
@@ -241,7 +243,7 @@ public class SystemSampler extends Abstr
      * @param checkit boolean indicates if we check or not return code
      */
     public void setCheckReturnCode(boolean checkit) {
-        setProperty(CHECK_RETURN_CODE, (new Boolean(checkit)).toString());
+        setProperty(CHECK_RETURN_CODE, checkit);
     }
     
     /**



Mime
View raw message