jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1465458 - /jmeter/trunk/src/core/org/apache/jmeter/testelement/WorkBench.java
Date Sun, 07 Apr 2013 20:45:36 GMT
Author: sebb
Date: Sun Apr  7 20:45:36 2013
New Revision: 1465458

URL: http://svn.apache.org/r1465458
Log:
Property does not have to be public; use constant for property default

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/testelement/WorkBench.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testelement/WorkBench.java?rev=1465458&r1=1465457&r2=1465458&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testelement/WorkBench.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testelement/WorkBench.java Sun Apr  7 20:45:36
2013
@@ -21,9 +21,11 @@ package org.apache.jmeter.testelement;
 public class WorkBench extends AbstractTestElement {
 
     private static final long serialVersionUID = 240L;
-    // Used in Save.java to define whether to save WorkBench content or not.
-    public static final String SAVE_WORKBENCH = "WorkBench.save";
 
+    // JMX property name: do not change
+    private static final String SAVE_WORKBENCH = "WorkBench.save";
+
+    private static final boolean SAVE_WORKBENCH_DEFAULT = false;
 
     /**
      * Constructor for the WorkBench object.
@@ -36,10 +38,10 @@ public class WorkBench extends AbstractT
     }
 
     public boolean getSaveWorkBench() {
-        return getPropertyAsBoolean(SAVE_WORKBENCH, false);
+        return getPropertyAsBoolean(SAVE_WORKBENCH, SAVE_WORKBENCH_DEFAULT);
     }
 
     public void setSaveWorkBench(boolean saveWorkBench) {
-        setProperty(SAVE_WORKBENCH, saveWorkBench, false);
+        setProperty(SAVE_WORKBENCH, saveWorkBench, SAVE_WORKBENCH_DEFAULT);
     }
 }



Mime
View raw message