Skip to content

Commit

Permalink
Rename to NotNullOperandTypeChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
chucheng92 committed Mar 1, 2024
1 parent 5db063b commit 9d289a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
/**
* Parameter type-checking strategy where all operand types must not be NULL.
*/
public class NullOperandTypeChecker extends SameOperandTypeChecker {
public class NotNullOperandTypeChecker extends SameOperandTypeChecker {
//~ Instance fields --------------------------------------------------------

private final boolean allowCast;

//~ Constructors -----------------------------------------------------------

public NullOperandTypeChecker(final int nOperands, final boolean allowCast) {
public NotNullOperandTypeChecker(final int nOperands, final boolean allowCast) {
super(nOperands);
this.allowCast = allowCast;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ public static SqlOperandTypeChecker variadic(
* Operand type-checking strategy where all types must be non-NULL value.
*/
public static final SqlSingleOperandTypeChecker NONNULL_NONNULL =
new NullOperandTypeChecker(2, false);
new NotNullOperandTypeChecker(2, false);

/**
* Operand type-checking strategy type must be a boolean non-NULL literal.
Expand Down

0 comments on commit 9d289a4

Please sign in to comment.