Skip to content

Commit

Permalink
Fix whitespace differences in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Sep 19, 2024
1 parent dc783a9 commit b7553e4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package org.apache.calcite.linq4j.tree;

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

import org.checkerframework.checker.nullness.qual.Nullable;
Expand Down Expand Up @@ -90,9 +91,9 @@ public MethodDeclaration(int modifier, String name, Type resultType,
final int flinkDefaultMaxMembersGeneratedCode = 10000;

// TODO: Use code splitter conditionally based on configuration.
writer.append(
writer.append(StringUtils.stripStart(
JavaCodeSplitter.split(tempWriter.toString(), flinkDefaultMaxGeneratedCodeLength,
flinkDefaultMaxMembersGeneratedCode));
flinkDefaultMaxMembersGeneratedCode), null));

Check failure on line 96 in linq4j/src/main/java/org/apache/calcite/linq4j/tree/MethodDeclaration.java

View workflow job for this annotation

GitHub Actions / CheckerFramework (JDK 11)

[Task :linq4j:compileJava] [argument.type.incompatible] incompatible argument for parameter stripChars of stripStart. flinkDefaultMaxMembersGeneratedCode), null)); ^ found : null (NullType)

Check failure on line 96 in linq4j/src/main/java/org/apache/calcite/linq4j/tree/MethodDeclaration.java

View workflow job for this annotation

GitHub Actions / CheckerFramework (JDK 11), oldest Guava

[Task :linq4j:compileJava] [argument.type.incompatible] incompatible argument for parameter stripChars of stripStart. flinkDefaultMaxMembersGeneratedCode), null)); ^ found : null (NullType)
writer.newlineAndIndent();
}

Expand Down

0 comments on commit b7553e4

Please sign in to comment.