From 7bfadf32e54681018ff8b803d67647d31b8eeee9 Mon Sep 17 00:00:00 2001 From: Isaac Turner Date: Sun, 10 Dec 2023 01:47:10 +0800 Subject: [PATCH] [wpilibj] Joystick: make remainder of get axis methods final (#6024) --- wpilibj/src/main/java/edu/wpi/first/wpilibj/Joystick.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/Joystick.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/Joystick.java index d73b7bbc258..0e112ded0f9 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/Joystick.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/Joystick.java @@ -184,7 +184,7 @@ public final double getY() { * * @return the z position */ - public double getZ() { + public final double getZ() { return getRawAxis(m_axes[AxisType.kZ.value]); } @@ -194,7 +194,7 @@ public double getZ() { * * @return The Twist value of the joystick. */ - public double getTwist() { + public final double getTwist() { return getRawAxis(m_axes[AxisType.kTwist.value]); } @@ -204,7 +204,7 @@ public double getTwist() { * * @return The Throttle value of the joystick. */ - public double getThrottle() { + public final double getThrottle() { return getRawAxis(m_axes[AxisType.kThrottle.value]); }