aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Pankaj Bansal <pbansal@openjdk.org> 2021-04-15 14:04:22 +0000
committerGravatar Pankaj Bansal <pbansal@openjdk.org> 2021-04-15 14:04:22 +0000
commit6b907155f7197ebce5f345de2500d0ff3f8bfaab (patch)
tree3f159b631b58ea26f49a5a5d4578533d1a073f27
parent0fee6ecac21b232b203c9b2a2cd2a9a6c125d163 (diff)
downloadjdk-6b907155f7197ebce5f345de2500d0ff3f8bfaab.tar.gz
jdk-6b907155f7197ebce5f345de2500d0ff3f8bfaab.zip
8265278: doc build fails after JDK-8262981
Reviewed-by: jdv, trebari
-rw-r--r--src/java.desktop/share/classes/javax/swing/JSlider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java.desktop/share/classes/javax/swing/JSlider.java b/src/java.desktop/share/classes/javax/swing/JSlider.java
index aecaec2c131..86e001f6c2c 100644
--- a/src/java.desktop/share/classes/javax/swing/JSlider.java
+++ b/src/java.desktop/share/classes/javax/swing/JSlider.java
@@ -1591,12 +1591,12 @@ public class JSlider extends JComponent implements SwingConstants, Accessible {
* @return true.
* @see #getAccessibleActionCount
*/
- public boolean doAccessibleAction(int direction) {
- if (direction < 0 || direction > 1) {
+ public boolean doAccessibleAction(int i) {
+ if (i < 0 || i > 1) {
return false;
}
//0 is increment, 1 is decrrement
- int delta = ((direction > 0) ? -1 : 1);
+ int delta = ((i > 0) ? -1 : 1);
JSlider.this.setValue(oldModelValue + delta);
return true;
}