jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1532085 - /jmeter/trunk/src/core/org/apache/jmeter/control/TransactionController.java
Date Mon, 14 Oct 2013 20:47:58 GMT
Author: pmouawad
Date: Mon Oct 14 20:47:58 2013
New Revision: 1532085

URL: http://svn.apache.org/r1532085
Log:
Add constant 

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/control/TransactionController.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/control/TransactionController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionController.java?rev=1532085&r1=1532084&r2=1532085&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/TransactionController.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/TransactionController.java Mon Oct 14
20:47:58 2013
@@ -53,6 +53,8 @@ public class TransactionController exten
     
     private static final Logger log = LoggingManager.getLoggerForClass();
 
+    private static final boolean DEFAULT_VALUE_FOR_INCLUDE_TIMERS = true; // default true
for compatibility
+
     /**
      * Only used in parent Mode
      */
@@ -293,7 +295,7 @@ public class TransactionController exten
      * @param includeTimers
      */
     public void setIncludeTimers(boolean includeTimers) {
-        setProperty(INCLUDE_TIMERS, includeTimers, true); // default true for compatibility
+        setProperty(INCLUDE_TIMERS, includeTimers, DEFAULT_VALUE_FOR_INCLUDE_TIMERS);
     }
 
     /**
@@ -302,6 +304,6 @@ public class TransactionController exten
      * @return boolean (defaults to true for backwards compatibility)
      */
     public boolean isIncludeTimers() {
-        return getPropertyAsBoolean(INCLUDE_TIMERS, true);
+        return getPropertyAsBoolean(INCLUDE_TIMERS, DEFAULT_VALUE_FOR_INCLUDE_TIMERS);
     }
 }



Mime
View raw message