Skip to content

Commit

Permalink
Revert unintended change around assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Sep 20, 2024
1 parent dd5b995 commit 8f62b88
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package org.apache.calcite.linq4j.tree;

import static java.util.Objects.requireNonNull;

import org.apache.commons.lang3.StringUtils;
import org.apache.flink.table.codesplit.JavaCodeSplitter;

Expand All @@ -39,15 +41,10 @@ public class MethodDeclaration extends MemberDeclaration {

public MethodDeclaration(int modifier, String name, Type resultType,
List<ParameterExpression> parameters, BlockStatement body) {
assert name != null : "name should not be null";
assert resultType != null : "resultType should not be null";
assert parameters != null : "parameters should not be null";
assert body != null : "body should not be null";
this.modifier = modifier;
this.name = name;
this.resultType = resultType;
this.parameters = parameters;
this.body = body;
this.name = requireNonNull(name, "name");
this.resultType = requireNonNull(resultType, "resultType");
this.parameters = requireNonNull(parameters, "parameters");
this.body = requireNonNull(body, "body");
}

@Override public MemberDeclaration accept(Shuttle shuttle) {
Expand Down

0 comments on commit 8f62b88

Please sign in to comment.