Use StringBuilder instead StringBuffer in Godot Java code
(cherry picked from commit 61ee51d2bf
)
This commit is contained in:
parent
c1abbfb605
commit
6a07253bb6
2 changed files with 2 additions and 2 deletions
|
@ -1015,7 +1015,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
||||||
byte[] messageDigest = complete.digest();
|
byte[] messageDigest = complete.digest();
|
||||||
|
|
||||||
// Create Hex String
|
// Create Hex String
|
||||||
StringBuffer hexString = new StringBuffer();
|
StringBuilder hexString = new StringBuilder();
|
||||||
for (int i = 0; i < messageDigest.length; i++) {
|
for (int i = 0; i < messageDigest.length; i++) {
|
||||||
String s = Integer.toHexString(0xFF & messageDigest[i]);
|
String s = Integer.toHexString(0xFF & messageDigest[i]);
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class Crypt {
|
||||||
byte[] messageDigest = digest.digest();
|
byte[] messageDigest = digest.digest();
|
||||||
|
|
||||||
// Create Hex String
|
// Create Hex String
|
||||||
StringBuffer hexString = new StringBuffer();
|
StringBuilder hexString = new StringBuilder();
|
||||||
for (int i = 0; i < messageDigest.length; i++)
|
for (int i = 0; i < messageDigest.length; i++)
|
||||||
hexString.append(Integer.toHexString(0xFF & messageDigest[i]));
|
hexString.append(Integer.toHexString(0xFF & messageDigest[i]));
|
||||||
return hexString.toString();
|
return hexString.toString();
|
||||||
|
|
Loading…
Reference in a new issue