Fix some IntelliJ stuff

This commit is contained in:
Roscoe 2024-11-24 20:46:50 +00:00
commit e155ec8c6c
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
2 changed files with 8 additions and 0 deletions

View file

@ -47,6 +47,7 @@ public class DurationUtils {
.plusSeconds(seconds);
}
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
public static boolean isDurationBetween(Duration target, Duration lowerThreshold, Duration upperThreshold) {
if (target == lowerThreshold || target == upperThreshold) return true;
return !target.isNegative() &&