mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
#2521: Using replace instead of replaceAll
This commit is contained in:
parent
ba0739798a
commit
9886021428
@ -75,7 +75,7 @@ public class ServerPing
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return uniqueId.toString().replaceAll( "-", "" );
|
||||
return uniqueId.toString().replace( "-", "" );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -581,7 +581,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
@Override
|
||||
public Locale getLocale()
|
||||
{
|
||||
return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale().replaceAll( "_", "-" ) ) : locale;
|
||||
return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale().replace( '_', '-' ) ) : locale;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -625,7 +625,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
@Override
|
||||
public String getUUID()
|
||||
{
|
||||
return uniqueId.toString().replaceAll( "-", "" );
|
||||
return uniqueId.toString().replace( "-", "" );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user