Merge pull request #372 from MrGazdag/patch-1

Fix ArrayUtils#sameStart
This commit is contained in:
TheMode 2021-07-17 21:21:43 +02:00 committed by GitHub
commit f4d280a240
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++) {
final T value1 = array1[i];
for (int j = 0; j < length; j++) {
final T value2 = array2[j];
if (!value1.equals(value2)) {
return false;
}
final T value2 = array2[i];
if (!value1.equals(value2)) {
return false;
}
}
return true;