You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Replace index iterators with for each loops.
(cherry picked from commit 334ebd7eb7)
This commit is contained in:
committed by
Rémi Verschelde
parent
23b649b673
commit
76b5c31433
@@ -1019,9 +1019,8 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
||||
|
||||
// Create Hex String
|
||||
StringBuilder hexString = new StringBuilder();
|
||||
for (int i = 0; i < messageDigest.length; i++) {
|
||||
String s = Integer.toHexString(0xFF & messageDigest[i]);
|
||||
|
||||
for (byte b : messageDigest) {
|
||||
String s = Integer.toHexString(0xFF & b);
|
||||
if (s.length() == 1) {
|
||||
s = "0" + s;
|
||||
}
|
||||
|
||||
@@ -43,8 +43,8 @@ public class Crypt {
|
||||
|
||||
// Create Hex String
|
||||
StringBuilder hexString = new StringBuilder();
|
||||
for (int i = 0; i < messageDigest.length; i++)
|
||||
hexString.append(Integer.toHexString(0xFF & messageDigest[i]));
|
||||
for (byte b : messageDigest)
|
||||
hexString.append(Integer.toHexString(0xFF & b));
|
||||
return hexString.toString();
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user