improve code according to intellij tips

This commit is contained in:
Govindas 2021-04-17 11:11:20 +03:00
parent 2a1007d52f
commit ee9ed4af11
1 changed files with 3 additions and 3 deletions

View File

@ -19,12 +19,12 @@ public class CleanupTimer {
@Override
public void run() {
Iterator it = Skooldown.cooldowns.entrySet().iterator();
Iterator<Map.Entry<String, Long>> it = Skooldown.cooldowns.entrySet().iterator();
i = 0;
while (it.hasNext()) {
Map.Entry pair = (Map.Entry) it.next();
Map.Entry<String, Long> pair = it.next();
long value = (long) pair.getValue();
long value = pair.getValue();
if (value < System.currentTimeMillis()) {
i++;