From b1b441fac24d6569e291ea3446b587cea6a5a293 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Sun, 13 Sep 2015 19:58:54 +0200 Subject: [PATCH] cleanup --- src/main/java/fr/xephi/authme/Utils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/Utils.java b/src/main/java/fr/xephi/authme/Utils.java index 7d4e9b775..d92a753c2 100644 --- a/src/main/java/fr/xephi/authme/Utils.java +++ b/src/main/java/fr/xephi/authme/Utils.java @@ -193,7 +193,8 @@ public class Utils { } } - public static Collection getOnlinePlayers() { + @SuppressWarnings("unchecked") + public static Collection getOnlinePlayers() { if (getOnlinePlayersIsCollection) { return Bukkit.getOnlinePlayers(); } @@ -203,7 +204,7 @@ public class Utils { } Object obj = getOnlinePlayers.invoke(null); if (obj instanceof Collection) { - return (Collection) obj; + return (Collection) obj; } return Arrays.asList((Player[]) obj); } catch (Exception ignored) {