Skip to content

Commit

Permalink
[wpilibj] TimedRobot: Squash ErrorProne warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Dec 29, 2024
1 parent 203487a commit 6ae8e11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/TimedRobot.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ static class Callback implements Comparable<Callback> {
* Construct a callback container.
*
* @param func The callback to run.
* @param startTimeSeconds The common starting point for all callback scheduling in
* @param startTimeUs 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 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;
Expand All @@ -54,7 +54,7 @@ public boolean equals(Object rhs) {

@Override
public int hashCode() {
return Double.hashCode(expirationTime);
return Long.hashCode(expirationTime);
}

@Override
Expand Down

0 comments on commit 6ae8e11

Please sign in to comment.