#2521: Using replace instead of replaceAll

This commit is contained in:
NayXegp 2018-09-04 22:36:02 +02:00 committed by md_5
parent ba0739798a
commit 9886021428
3 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ public class ServerPing
public String getId()
{
return uniqueId.toString().replaceAll( "-", "" );
return uniqueId.toString().replace( "-", "" );
}
}

View File

@ -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

View File

@ -625,7 +625,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
@Override
public String getUUID()
{
return uniqueId.toString().replaceAll( "-", "" );
return uniqueId.toString().replace( "-", "" );
}
@Override