Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8265278: doc build fails after JDK-8262981
Reviewed-by: jdv, trebari
  • Loading branch information
Pankaj Bansal committed Apr 15, 2021
1 parent 0fee6ec commit 6b90715
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java.desktop/share/classes/javax/swing/JSlider.java
Expand Up @@ -1591,12 +1591,12 @@ public String getAccessibleActionDescription(int i) {
* @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;
}
Expand Down

1 comment on commit 6b90715

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.