Fix some IntelliJ stuff

This commit is contained in:
floppydiskette 2024-11-24 20:46:50 +00:00
commit 6663b08c8c
No known key found for this signature in database
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() &&