mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-23 04:28:01 +00:00
Fix some FindBugs issues.
This commit is contained in:
parent
f201cdc4e8
commit
b375b5402d
@ -94,7 +94,7 @@ public final class RedisBungee extends Plugin {
|
|||||||
Map<String, String> heartbeats = jedis.hgetAll("heartbeats");
|
Map<String, String> heartbeats = jedis.hgetAll("heartbeats");
|
||||||
for (Map.Entry<String, String> entry : heartbeats.entrySet()) {
|
for (Map.Entry<String, String> entry : heartbeats.entrySet()) {
|
||||||
try {
|
try {
|
||||||
long stamp = Long.valueOf(entry.getValue());
|
long stamp = Long.parseLong(entry.getValue());
|
||||||
if (System.currentTimeMillis() < stamp + 30000)
|
if (System.currentTimeMillis() < stamp + 30000)
|
||||||
servers.add(entry.getKey());
|
servers.add(entry.getKey());
|
||||||
else if (nag <= 0) {
|
else if (nag <= 0) {
|
||||||
|
@ -74,7 +74,7 @@ class UUIDFetcher implements Callable<Map<String, UUID>> {
|
|||||||
return uuidMap;
|
return uuidMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class Profile {
|
private static class Profile {
|
||||||
String id;
|
String id;
|
||||||
String name;
|
String name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user