improve code according to intellij tips
This commit is contained in:
parent
2a1007d52f
commit
ee9ed4af11
@ -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++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user