From ee9ed4af11f303195a7bbc3738c40d2168834d9a Mon Sep 17 00:00:00 2001 From: Govindas Date: Sat, 17 Apr 2021 11:11:20 +0300 Subject: [PATCH] improve code according to intellij tips --- .../java/net/govindas/skooldown/utilities/CleanupTimer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/govindas/skooldown/utilities/CleanupTimer.java b/src/main/java/net/govindas/skooldown/utilities/CleanupTimer.java index cab9ab0..765d81d 100644 --- a/src/main/java/net/govindas/skooldown/utilities/CleanupTimer.java +++ b/src/main/java/net/govindas/skooldown/utilities/CleanupTimer.java @@ -19,12 +19,12 @@ public class CleanupTimer { @Override public void run() { - Iterator it = Skooldown.cooldowns.entrySet().iterator(); + Iterator> it = Skooldown.cooldowns.entrySet().iterator(); i = 0; while (it.hasNext()) { - Map.Entry pair = (Map.Entry) it.next(); + Map.Entry pair = it.next(); - long value = (long) pair.getValue(); + long value = pair.getValue(); if (value < System.currentTimeMillis()) { i++;