Fix ArrayUtils#sameStart

Fixes #370, which was a weird occurrence of this bug lmao
This commit is contained in:
MrGazdag 2021-07-17 21:20:10 +02:00 committed by GitHub
parent b9864a1a28
commit 0724b8639b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,11 +94,9 @@ public final class ArrayUtils {
for (int i = 0; i < length; i++) { for (int i = 0; i < length; i++) {
final T value1 = array1[i]; final T value1 = array1[i];
for (int j = 0; j < length; j++) { final T value2 = array2[i];
final T value2 = array2[j]; if (!value1.equals(value2)) {
if (!value1.equals(value2)) { return false;
return false;
}
} }
} }
return true; return true;