harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r572661 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
Date Tue, 04 Sep 2007 13:12:14 GMT
Author: odeakin
Date: Tue Sep  4 06:12:14 2007
New Revision: 572661

URL: http://svn.apache.org/viewvc?rev=572661&view=rev
Log:
Apply patch HARMONY-4523 ([classlib][swing]BasicSliderUI.ActionScroller should be marked with
notImplementedException)

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java?rev=572661&r1=572660&r2=572661&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
Tue Sep  4 06:12:14 2007
@@ -51,6 +51,7 @@
 import javax.swing.plaf.ComponentUI;
 import javax.swing.plaf.SliderUI;
 
+import org.apache.harmony.luni.util.NotImplementedException;
 import org.apache.harmony.x.swing.StringConstants;
 import org.apache.harmony.x.swing.Utilities;
 
@@ -63,18 +64,28 @@
  */
 public class BasicSliderUI extends SliderUI {
 
+    /**
+     * This class isn't used since 1.3 and not implemented here (see
+     * HARMONY-4523 for details - the methods doesn't throw new
+     * NotImplementedException according to backward compatibility)
+     */
+    @SuppressWarnings("unused")
     public class ActionScroller extends AbstractAction {
         private static final long serialVersionUID = -3454576988589353120L;
 
-        public ActionScroller(final JSlider slider, final int dir, final boolean block) {
+        public ActionScroller(JSlider slider, int dir, boolean block)
+                throws NotImplementedException {
+            // Not implemented.
         }
 
-        public void actionPerformed(final ActionEvent e) {
+        public void actionPerformed(ActionEvent e)
+                throws NotImplementedException {
+            throw new NotImplementedException();
         }
 
         @Override
         public boolean isEnabled() {
-            return true;
+            return enabled;
         }
     }
 



Mime
View raw message