Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
SpigotMC#2521: Using replace instead of replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
NayXegp authored and md-5 committed Sep 4, 2018
1 parent ba07397 commit 9886021
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/net/md_5/bungee/api/ServerPing.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void setId(String id)

public String getId()
{
return uniqueId.toString().replaceAll( "-", "" );
return uniqueId.toString().replace( "-", "" );
}
}

Expand Down
2 changes: 1 addition & 1 deletion proxy/src/main/java/net/md_5/bungee/UserConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ public void setSettings(ClientSettings settings)
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ public void setUniqueId(UUID uuid)
@Override
public String getUUID()
{
return uniqueId.toString().replaceAll( "-", "" );
return uniqueId.toString().replace( "-", "" );
}

@Override
Expand Down

0 comments on commit 9886021

Please sign in to comment.