From e7dd5dca822c09c10c7db1ef2b04faca51e1f03c Mon Sep 17 00:00:00 2001 From: David Vo Date: Sun, 29 Dec 2024 16:01:43 +1100 Subject: [PATCH] [wpilibj] TimedRobot: Squash ErrorProne warnings (#7605) --- .../src/main/java/edu/wpi/first/wpilibj/TimedRobot.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/TimedRobot.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/TimedRobot.java index 78a8046f3d..4525d6aa65 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/TimedRobot.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/TimedRobot.java @@ -32,10 +32,9 @@ public class TimedRobot extends IterativeRobotBase { * Construct a callback container. * * @param func The callback to run. - * @param startTimeSeconds The common starting point for all callback scheduling in - * microseconds. - * @param periodSeconds The period at which to run the callback in microseconds. - * @param offsetSeconds The offset from the common starting time in microseconds. + * @param startTimeUs The common starting point for all callback scheduling in microseconds. + * @param periodUs The period at which to run the callback in microseconds. + * @param offsetUs The offset from the common starting time in microseconds. */ Callback(Runnable func, long startTimeUs, long periodUs, long offsetUs) { this.func = func; @@ -54,7 +53,7 @@ public class TimedRobot extends IterativeRobotBase { @Override public int hashCode() { - return Double.hashCode(expirationTime); + return Long.hashCode(expirationTime); } @Override