mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #60457 from madmiraal/replace-index-iterators
Replace index iterators with for each loops.
This commit is contained in:
commit
b4a1a76bce
2 changed files with 4 additions and 5 deletions
|
|
@ -883,9 +883,8 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
||||||
|
|
||||||
// Create Hex String
|
// Create Hex String
|
||||||
StringBuilder hexString = new StringBuilder();
|
StringBuilder hexString = new StringBuilder();
|
||||||
for (int i = 0; i < messageDigest.length; i++) {
|
for (byte b : messageDigest) {
|
||||||
String s = Integer.toHexString(0xFF & messageDigest[i]);
|
String s = Integer.toHexString(0xFF & b);
|
||||||
|
|
||||||
if (s.length() == 1) {
|
if (s.length() == 1) {
|
||||||
s = "0" + s;
|
s = "0" + s;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,8 @@ public class Crypt {
|
||||||
|
|
||||||
// Create Hex String
|
// Create Hex String
|
||||||
StringBuilder hexString = new StringBuilder();
|
StringBuilder hexString = new StringBuilder();
|
||||||
for (int i = 0; i < messageDigest.length; i++)
|
for (byte b : messageDigest)
|
||||||
hexString.append(Integer.toHexString(0xFF & messageDigest[i]));
|
hexString.append(Integer.toHexString(0xFF & b));
|
||||||
return hexString.toString();
|
return hexString.toString();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue