Skip to content

Commit

Permalink
Fix JDK 11 build
Browse files Browse the repository at this point in the history
  • Loading branch information
RCHowell committed Dec 3, 2024
1 parent afd1d94 commit d95f761
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public Operator visitArray(@NotNull RexArray rex, C ctx) {
@Override
public Operator visitBag(@NotNull RexBag rex, C ctx) {
// rewrite values (necessarily ascribes order)
List<Rex> values = rex.getValues().stream().toList();
List<Rex> values = List.copyOf(rex.getValues());
List<Rex> values_new = visitAll(values, ctx, this::visitRex);
// rewrite bag
if (values != values_new) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected final RexType type() {
@NotNull
@Override
protected final List<Operator> operands() {
List<Rex> varargs = getValues().stream().toList();
Collection<? extends Operator> varargs = getValues();
return List.copyOf(varargs);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected final RexType type() {
@NotNull
@Override
protected final List<Operator> operands() {
List<Rex> varargs = getArgs().stream().toList();
List<? extends Operator> varargs = getArgs();
return List.copyOf(varargs);
}

Expand Down

0 comments on commit d95f761

Please sign in to comment.