Fix some compiler warnings
This commit is contained in:
@@ -66,7 +66,7 @@ public class BungeeServerInfo implements ServerInfo
|
||||
@Override
|
||||
public Collection<ProxiedPlayer> getPlayers()
|
||||
{
|
||||
return Collections.unmodifiableCollection( new HashSet( players ) );
|
||||
return Collections.unmodifiableCollection( new HashSet<>( players ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -31,7 +31,7 @@ public class EncryptionUtil
|
||||
public static final KeyPair keys;
|
||||
@Getter
|
||||
private static final SecretKey secret = new SecretKeySpec( new byte[ 16 ], "AES" );
|
||||
public static final NativeCode<BungeeCipher> nativeFactory = new NativeCode( "native-cipher", JavaCipher.class, NativeCipher.class );
|
||||
public static final NativeCode<BungeeCipher> nativeFactory = new NativeCode<>( "native-cipher", JavaCipher.class, NativeCipher.class );
|
||||
|
||||
static
|
||||
{
|
||||
|
@@ -8,5 +8,5 @@ import net.md_5.bungee.jni.zlib.NativeZlib;
|
||||
public class CompressFactory
|
||||
{
|
||||
|
||||
public static final NativeCode<BungeeZlib> zlib = new NativeCode( "native-compress", JavaZlib.class, NativeZlib.class );
|
||||
public static final NativeCode<BungeeZlib> zlib = new NativeCode<>( "native-compress", JavaZlib.class, NativeZlib.class );
|
||||
}
|
||||
|
@@ -42,7 +42,7 @@ public class YamlConfig implements ConfigurationAdapter
|
||||
GLOBAL(), GLOBAL_PING(), SERVER();
|
||||
}
|
||||
private final Yaml yaml;
|
||||
private Map config;
|
||||
private Map<String, Object> config;
|
||||
private final File file = new File( "config.yml" );
|
||||
|
||||
public YamlConfig()
|
||||
@@ -72,10 +72,10 @@ public class YamlConfig implements ConfigurationAdapter
|
||||
|
||||
if ( config == null )
|
||||
{
|
||||
config = new CaseInsensitiveMap();
|
||||
config = new CaseInsensitiveMap<>();
|
||||
} else
|
||||
{
|
||||
config = new CaseInsensitiveMap( config );
|
||||
config = new CaseInsensitiveMap<>( config );
|
||||
}
|
||||
} catch ( IOException ex )
|
||||
{
|
||||
|
@@ -63,10 +63,10 @@ public class ModuleManager
|
||||
|
||||
if ( config == null )
|
||||
{
|
||||
config = new CaseInsensitiveMap();
|
||||
config = new CaseInsensitiveMap<>();
|
||||
} else
|
||||
{
|
||||
config = new CaseInsensitiveMap( config );
|
||||
config = new CaseInsensitiveMap<>( config );
|
||||
}
|
||||
// End yaml
|
||||
|
||||
|
Reference in New Issue
Block a user