Skip to content

Commit e8b8339

Browse files
committed
[MySQL] Fix compiler warnings
1 parent 49af501 commit e8b8339

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/sqlancer/mysql/ast/MySQLComputableFunction.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public enum MySQLFunction {
4343
BIT_COUNT(1, "BIT_COUNT") {
4444

4545
@Override
46-
public MySQLConstant apply(MySQLConstant[] evaluatedArgs, MySQLExpression[] args) {
46+
public MySQLConstant apply(MySQLConstant[] evaluatedArgs, MySQLExpression... args) {
4747
MySQLConstant arg = evaluatedArgs[0];
4848
if (arg.isNull()) {
4949
return MySQLConstant.createNullConstant();
@@ -74,7 +74,7 @@ public MySQLConstant apply(MySQLConstant[] evaluatedArgs, MySQLExpression[] args
7474
COALESCE(2, "COALESCE") {
7575

7676
@Override
77-
public MySQLConstant apply(MySQLConstant[] args, MySQLExpression[] origArgs) {
77+
public MySQLConstant apply(MySQLConstant[] args, MySQLExpression... origArgs) {
7878
MySQLConstant result = MySQLConstant.createNullConstant();
7979
for (MySQLConstant arg : args) {
8080
if (!arg.isNull()) {
@@ -97,7 +97,7 @@ public boolean isVariadic() {
9797
IF(3, "IF") {
9898

9999
@Override
100-
public MySQLConstant apply(MySQLConstant[] args, MySQLExpression[] origArgs) {
100+
public MySQLConstant apply(MySQLConstant[] args, MySQLExpression... origArgs) {
101101
MySQLConstant cond = args[0];
102102
MySQLConstant left = args[1];
103103
MySQLConstant right = args[2];
@@ -118,7 +118,7 @@ public MySQLConstant apply(MySQLConstant[] args, MySQLExpression[] origArgs) {
118118
IFNULL(2, "IFNULL") {
119119

120120
@Override
121-
public MySQLConstant apply(MySQLConstant[] args, MySQLExpression[] origArgs) {
121+
public MySQLConstant apply(MySQLConstant[] args, MySQLExpression... origArgs) {
122122
MySQLConstant result;
123123
if (args[0].isNull()) {
124124
result = args[1];
@@ -132,14 +132,14 @@ public MySQLConstant apply(MySQLConstant[] args, MySQLExpression[] origArgs) {
132132
LEAST(2, "LEAST", true) {
133133

134134
@Override
135-
public MySQLConstant apply(MySQLConstant[] evaluatedArgs, MySQLExpression[] args) {
135+
public MySQLConstant apply(MySQLConstant[] evaluatedArgs, MySQLExpression... args) {
136136
return aggregate(evaluatedArgs, (min, cur) -> cur.isLessThan(min).asBooleanNotNull() ? cur : min);
137137
}
138138

139139
},
140140
GREATEST(2, "GREATEST", true) {
141141
@Override
142-
public MySQLConstant apply(MySQLConstant[] evaluatedArgs, MySQLExpression[] args) {
142+
public MySQLConstant apply(MySQLConstant[] evaluatedArgs, MySQLExpression... args) {
143143
return aggregate(evaluatedArgs, (max, cur) -> cur.isLessThan(max).asBooleanNotNull() ? max : cur);
144144
}
145145
};

0 commit comments

Comments
 (0)