improve code according to intellij tips

This commit is contained in:
Govindas 2021-04-17 11:11:20 +03:00
parent 2a1007d52f
commit ee9ed4af11

View File

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