Skip to content

Commit

Permalink
Remove redundant isArray check in Validator
Browse files Browse the repository at this point in the history
The reason is that condition `b.getClass().isArray()` is always 'true' when reached.
  • Loading branch information
polaris6 authored and findepi committed May 18, 2022
1 parent ec406c1 commit cc9f226
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ private static Comparator<Object> columnComparator(int precision)
if (a.getClass() != b.getClass()) {
throw new TypesDoNotMatchException(format("item types do not match: %s vs %s", a.getClass().getName(), b.getClass().getName()));
}
if ((a.getClass().isArray() && b.getClass().isArray())) {
if (a.getClass().isArray()) {
Object[] aArray = (Object[]) a;
Object[] bArray = (Object[]) b;

Expand Down

0 comments on commit cc9f226

Please sign in to comment.