Remove deprecated guava function in config (#2327)

This removes the need to shade in the full guava library if a java program only uses bungeecord-config.
This commit is contained in:
Foorack 2018-01-14 11:58:26 +01:00 committed by md-5
parent 22bd43f725
commit aef386178a

View File

@ -1,10 +1,10 @@
package net.md_5.bungee.config; package net.md_5.bungee.config;
import com.google.common.collect.Sets;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -143,7 +143,7 @@ public final class Configuration
*/ */
public Collection<String> getKeys() public Collection<String> getKeys()
{ {
return Sets.newLinkedHashSet( self.keySet() ); return new LinkedHashSet<>( self.keySet() );
} }
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/