2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-12-23 10:38:01 +00:00

Fix some FindBugs issues.

This commit is contained in:
Tux 2015-01-25 00:04:34 -05:00
parent f201cdc4e8
commit b375b5402d
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ public final class RedisBungee extends Plugin {
Map<String, String> heartbeats = jedis.hgetAll("heartbeats");
for (Map.Entry<String, String> entry : heartbeats.entrySet()) {
try {
long stamp = Long.valueOf(entry.getValue());
long stamp = Long.parseLong(entry.getValue());
if (System.currentTimeMillis() < stamp + 30000)
servers.add(entry.getKey());
else if (nag <= 0) {

View File

@ -74,7 +74,7 @@ class UUIDFetcher implements Callable<Map<String, UUID>> {
return uuidMap;
}
private class Profile {
private static class Profile {
String id;
String name;
}