#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