Skip to content

Commit

Permalink
Remove excessive Arrays.asList from RexNormalize#hashCode
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Jul 17, 2020
1 parent 5462be9 commit e4458fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/org/apache/calcite/rex/RexNormalize.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import org.apiguardian.api.API;

import java.util.Arrays;
import java.util.List;
import java.util.Objects;

Expand Down Expand Up @@ -127,7 +126,7 @@ public static int hashCode(
if (x < 0) {
return Objects.hash(
SqlStdOperatorTable.reverse(operator),
Arrays.asList(operands.get(1), operands.get(0)));
operands.get(1), operands.get(0));
}
if (isSymmetricalCall(operator, operands.get(0), operands.get(1))) {
return Objects.hash(operator, unorderedHash(operands));
Expand Down

0 comments on commit e4458fa

Please sign in to comment.