Use Java array declarations not C-style declarations in Android Java code

(cherry picked from commit 721b3d56c5)
This commit is contained in:
Marcel Admiraal 2021-07-02 11:09:09 +01:00 committed by Rémi Verschelde
parent 2b78d618f4
commit 01ecec451c
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 3 additions and 3 deletions

View file

@ -891,7 +891,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
int displayRotation = display.getRotation();
float[] adjustedValues = new float[3];
final int axisSwap[][] = {
final int[][] axisSwap = {
{ 1, -1, 0, 1 }, // ROTATION_0
{ -1, -1, 1, 0 }, // ROTATION_90
{ -1, 1, 0, 1 }, // ROTATION_180

View file

@ -387,7 +387,7 @@ public class GodotIO {
Point size = new Point();
display.getRealSize(size);
int result[] = { 0, 0, size.x, size.y };
int[] result = { 0, 0, size.x, size.y };
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
WindowInsets insets = activity.getWindow().getDecorView().getRootWindowInsets();
DisplayCutout cutout = insets.getDisplayCutout();

View file

@ -39,7 +39,7 @@ public class Crypt {
// Create MD5 Hash
MessageDigest digest = java.security.MessageDigest.getInstance("MD5");
digest.update(input.getBytes());
byte messageDigest[] = digest.digest();
byte[] messageDigest = digest.digest();
// Create Hex String
StringBuffer hexString = new StringBuffer();