jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380031 - in /jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui: ComboStringEditor.java FieldStringEditor.java
Date Sun, 02 Sep 2012 18:47:39 GMT
Author: pmouawad
Date: Sun Sep  2 18:47:39 2012
New Revision: 1380031

URL: http://svn.apache.org/viewvc?rev=1380031&view=rev
Log:
make fields final

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/FieldStringEditor.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java?rev=1380031&r1=1380030&r2=1380031&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java Sun Sep 
2 18:47:39 2012
@@ -66,9 +66,9 @@ class ComboStringEditor extends Property
      */
     private String initialEditValue;
 
-    private JComboBox combo;
+    private final JComboBox combo;
 
-    private DefaultComboBoxModel model;
+    private final DefaultComboBoxModel model;
 
     private boolean startingEdit = false;
 
@@ -287,7 +287,7 @@ class ComboStringEditor extends Property
      * this by using a different type having a controlled .toString().
      */
     private static class UniqueObject {
-        private String s;
+        private final String s;
 
         UniqueObject(String s) {
             this.s = s;

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/FieldStringEditor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/FieldStringEditor.java?rev=1380031&r1=1380030&r2=1380031&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/FieldStringEditor.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/FieldStringEditor.java Sun Sep 
2 18:47:39 2012
@@ -44,7 +44,7 @@ class FieldStringEditor extends Property
      * cases where the combo box would not have other options than 'Edit'), or
      * the text editing component in the combo box.
      */
-    private JTextField textField;
+    private final JTextField textField;
 
     /**
      * Value on which we started the editing. Used to avoid firing



Mime
View raw message