Skip to content

Commit

Permalink
Adjust annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenada committed Mar 21, 2024
1 parent a4f9b07 commit f9b415e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
import com.google.common.collect.Multimap;
import com.google.common.collect.Ordering;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;

import java.util.ArrayList;
Expand Down Expand Up @@ -284,7 +285,7 @@ public static List<RelCollation> sort(RelCollation collation) {

/** Helper method to determine a
* {@link org.apache.calcite.rel.core.Calc}'s collation. */
public static @Nullable List<RelCollation> calc(RelMetadataQuery mq, RelNode input,
public static @NonNull List<RelCollation> calc(RelMetadataQuery mq, RelNode input,
RexProgram program) {
final List<RexNode> projects =
program
Expand All @@ -296,7 +297,7 @@ public static List<RelCollation> sort(RelCollation collation) {
}

/** Helper method to determine a {@link Project}'s collation. */
public static @Nullable List<RelCollation> project(RelMetadataQuery mq,
public static @NonNull List<RelCollation> project(RelMetadataQuery mq,
RelNode input, List<? extends RexNode> projects) {
final NavigableSet<RelCollation> collations = new TreeSet<>();
final List<RelCollation> inputCollations = mq.collations(input);
Expand Down

0 comments on commit f9b415e

Please sign in to comment.