From 781fc31d6f4ad93b3b3f01c823d9849b013d0474 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 18 Jul 2014 11:32:46 -0700 Subject: [PATCH] Clean up BukkitUtil. --- src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitUtil.java b/src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitUtil.java index 947347249..54db3d22f 100644 --- a/src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitUtil.java +++ b/src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitUtil.java @@ -43,7 +43,7 @@ import org.bukkit.material.Dye; import java.util.List; -public class BukkitUtil { +public final class BukkitUtil { private BukkitUtil() { } @@ -101,7 +101,7 @@ public class BukkitUtil { public static Player matchSinglePlayer(Server server, String name) { List players = server.matchPlayer(name); - if (players.size() == 0) { + if (players.isEmpty()) { return null; } return players.get(0);