diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index e28d6f3..41dbda4 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,7 +1,14 @@ \ No newline at end of file diff --git a/src/main/java/net/hypr/doki/utils/DurationUtils.java b/src/main/java/net/hypr/doki/utils/DurationUtils.java index 208f8e9..2341fbb 100644 --- a/src/main/java/net/hypr/doki/utils/DurationUtils.java +++ b/src/main/java/net/hypr/doki/utils/DurationUtils.java @@ -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() &&