Use StringBuilder instead StringBuffer in Godot Java code

(cherry picked from commit 61ee51d2bf)
This commit is contained in:
Marcel Admiraal 2021-07-02 16:57:12 +01:00 committed by Rémi Verschelde
parent c1abbfb605
commit 6a07253bb6
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View file

@ -1015,7 +1015,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
byte[] messageDigest = complete.digest();
// Create Hex String
StringBuffer hexString = new StringBuffer();
StringBuilder hexString = new StringBuilder();
for (int i = 0; i < messageDigest.length; i++) {
String s = Integer.toHexString(0xFF & messageDigest[i]);

View file

@ -42,7 +42,7 @@ public class Crypt {
byte[] messageDigest = digest.digest();
// Create Hex String
StringBuffer hexString = new StringBuffer();
StringBuilder hexString = new StringBuilder();
for (int i = 0; i < messageDigest.length; i++)
hexString.append(Integer.toHexString(0xFF & messageDigest[i]));
return hexString.toString();