From 6663b08c8c7f9eb213f35d1212b23a385c205c9f Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Sun, 24 Nov 2024 20:46:50 +0000 Subject: [PATCH] Fix some IntelliJ stuff --- .idea/inspectionProfiles/Project_Default.xml | 7 +++++++ src/main/java/net/hypr/doki/utils/DurationUtils.java | 1 + 2 files changed, 8 insertions(+) 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() &&