Fix some IntelliJ stuff

This commit is contained in:
Roscoe 2024-11-24 20:46:50 +00:00
commit 7e0eff6c2b
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() &&