Use static imports for Colectors.*

This commit is contained in:
games647 committed 2018-02-05 12:54:35 +01:00
1 parent 0c550edb05
commit d0d5bd300b
7 files changed
+20 -10

No files matched your search

@@ -14,12 +14,13 @@ import java.nio.file.Path;
import java.util.Collections;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;
import static java.util.stream.Collectors.toSet;
/**
* Responsible for receiving messages from a BungeeCord instance.
*
@@ -104,7 +105,7 @@ public class BungeeListener implements PluginMessageListener {
return Files.lines(whitelistFile)
.map(String::trim)
.map(UUID::fromString)
.collect(Collectors.toSet());
.collect(toSet());
} catch (IOException ex) {
plugin.getLog().error("Failed to create file for Proxy whitelist", ex);
} catch (Exception ex) {