From b375b5402de8553bf954ef82a4e14d35fada3378 Mon Sep 17 00:00:00 2001 From: Tux Date: Sun, 25 Jan 2015 00:04:34 -0500 Subject: [PATCH] Fix some FindBugs issues. --- .../com/imaginarycode/minecraft/redisbungee/RedisBungee.java | 2 +- .../imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 4ce6206..6dc908d 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -94,7 +94,7 @@ public final class RedisBungee extends Plugin { Map heartbeats = jedis.hgetAll("heartbeats"); for (Map.Entry 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) { diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java index 738b148..c93678e 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java @@ -74,7 +74,7 @@ class UUIDFetcher implements Callable> { return uuidMap; } - private class Profile { + private static class Profile { String id; String name; }