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

+6 -1
View File
@@ -74,6 +74,7 @@
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -81,6 +82,7 @@
<artifactId>ProtocolSupport</artifactId>
<!--4.25.dev-->
<version>a4f060dc46</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -102,6 +104,7 @@
<groupId>fr.xephi</groupId>
<artifactId>authme</artifactId>
<version>5.3.2</version>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<exclusion>
@@ -115,6 +118,7 @@
<groupId>com.lenis0012.bukkit</groupId>
<artifactId>loginsecurity</artifactId>
<version>2.1.7</version>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<exclusion>
@@ -128,8 +132,8 @@
<groupId>com.github.games647</groupId>
<artifactId>LogIt</artifactId>
<version>9e3581db27</version>
<optional>true</optional>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>*</groupId>
@@ -142,6 +146,7 @@
<groupId>de.luricos.bukkit</groupId>
<artifactId>xAuth</artifactId>
<version>2.6</version>
<scope>provided</scope>
<optional>true</optional>
<!--These artifacts produce conflicts on downloading-->
<exclusions>
@@ -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) {