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

Commit

Permalink
Merge pull request #223 from SpigotMC/master
Browse files Browse the repository at this point in the history
SpigotMC#2521: Using replace instead of replaceAll
  • Loading branch information
sleiss authored Sep 5, 2018
2 parents d472c1f + 9886021 commit 57e70cc
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 @@ -588,7 +588,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 @@ -631,7 +631,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 57e70cc

Please sign in to comment.