From 61ee51d2bf02aa83fdb049d6863649afe14b31ba Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Fri, 2 Jul 2021 16:57:12 +0100 Subject: Use StringBuilder instead StringBuffer in Godot Java code --- platform/android/java/lib/src/org/godotengine/godot/Godot.java | 2 +- platform/android/java/lib/src/org/godotengine/godot/utils/Crypt.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/android') diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.java b/platform/android/java/lib/src/org/godotengine/godot/Godot.java index b69b9add9d..7d662f3c83 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.java @@ -897,7 +897,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]); diff --git a/platform/android/java/lib/src/org/godotengine/godot/utils/Crypt.java b/platform/android/java/lib/src/org/godotengine/godot/utils/Crypt.java index b05da71f8b..2b6e4ad2be 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/utils/Crypt.java +++ b/platform/android/java/lib/src/org/godotengine/godot/utils/Crypt.java @@ -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(); -- cgit v1.2.3