Skip to content

Commit

Permalink
[wpilibj] TimedRobot: Squash ErrorProne warnings (#7605)
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek authored Dec 29, 2024
1 parent a27df8e commit e7dd5dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 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,9 @@ 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
* 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;
Expand All @@ -54,7 +53,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 e7dd5dc

Please sign in to comment.