Author: sebb
Date: Sat Oct 22 22:43:10 2011
New Revision: 1187819
URL: http://svn.apache.org/viewvc?rev=1187819&view=rev
Log:
Use boolean consistently
Config fields can be final
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/ArgumentsPanel.java
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/ArgumentsPanel.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/ArgumentsPanel.java?rev=1187819&r1=1187818&r2=1187819&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/ArgumentsPanel.java
(original)
+++
jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/ArgumentsPanel.java
Sat Oct 22 22:43:10 2011
@@ -79,7 +79,7 @@ public class ArgumentsPanel extends Abst
* Boolean indicating whether this component is a standalong component or
it
* is intended to be used as a subpanel for another component.
*/
- private boolean standalone = true;
+ private final boolean standalone;
/** Button to move a argument up*/
private JButton up;
@@ -87,7 +87,7 @@ public class ArgumentsPanel extends Abst
/** Button to move a argument down*/
private JButton down;
- private Boolean enableUpDown= Boolean.TRUE;
+ private final boolean enableUpDown;
/** Command for adding a row to the table. */
private static final String ADD = "add"; // $NON-NLS-1$
@@ -109,7 +109,7 @@ public class ArgumentsPanel extends Abst
* Create a new ArgumentsPanel as a standalone component.
*/
public ArgumentsPanel() {
- this(JMeterUtils.getResString("user_defined_variables"),null,
Boolean.TRUE, true);// $NON-NLS-1$
+ this(JMeterUtils.getResString("user_defined_variables"),null, true,
true);// $NON-NLS-1$
}
/**
@@ -131,7 +131,7 @@ public class ArgumentsPanel extends Abst
* the title for the component.
* @param enableUpDown Add up/down buttons
*/
- public ArgumentsPanel(String label, Boolean enableUpDown) {
+ public ArgumentsPanel(String label, boolean enableUpDown) {
this(label, null, enableUpDown, false);
}
@@ -151,7 +151,7 @@ public class ArgumentsPanel extends Abst
* @param enableUpDown Add up/down buttons
* @param standalone is standalone
*/
- public ArgumentsPanel(String label, Color bkg, Boolean enableUpDown,
boolean standalone) {
+ public ArgumentsPanel(String label, Color bkg, boolean enableUpDown,
boolean standalone) {
tableLabel = new JLabel(label);
this.enableUpDown = enableUpDown;
this.background = bkg;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]