jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1444362 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java
Date Sat, 09 Feb 2013 14:05:01 GMT
Author: pmouawad
Date: Sat Feb  9 14:05:01 2013
New Revision: 1444362

URL: http://svn.apache.org/r1444362
Log:
Fix Findbugs warning on Non serializable field within Serializable class

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java?rev=1444362&r1=1444361&r2=1444362&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/TristateCheckBox.java Sat Feb  9 14:05:01
2013
@@ -53,13 +53,19 @@ import org.apache.jmeter.testelement.pro
 public final class TristateCheckBox extends JCheckBox {
     private static final long serialVersionUID = 1L;
     // Listener on model changes to maintain correct focusability
-    private final ChangeListener enableListener = new ChangeListener() {
+    private final class TSCBChangeListener implements ChangeListener, Serializable {
+        /**
+         * 
+         */
+        private static final long serialVersionUID = -3718373200229708535L;
+
         @Override
         public void stateChanged(ChangeEvent e) {
             TristateCheckBox.this.setFocusable(
                     getModel().isEnabled());
         }
-    };
+    }
+    private final ChangeListener enableListener = new TSCBChangeListener();
 
     public TristateCheckBox() {
         this(null, null, TristateState.DESELECTED);



Mime
View raw message