modify build.sh #150
Annotations
2 errors and 2 warnings
task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck':
See 'What went wrong' below
|
Execution failed for task ':core:autostyleJavaCheck'.
> The following files have format violations:
core\src\main\java\org\apache\calcite\adapter\jdbc\JdbcRules.java
@@ -61,7 +61,6 @@
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rex.RexCall;
import org.apache.calcite.rex.RexFieldAccess;
-import org.apache.calcite.rex.RexInputRef;
import org.apache.calcite.rex.RexLiteral;
import org.apache.calcite.rex.RexNode;
import org.apache.calcite.rex.RexProgram;
core\src\main\java\org\apache\calcite\adapter\jdbc\JdbcSchema.java
@@ -16,12 +16,6 @@
*/
package org.apache.calcite.adapter.jdbc;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
-
-import com.google.common.util.concurrent.UncheckedExecutionException;
-
import org.apache.calcite.avatica.AvaticaUtils;
import org.apache.calcite.avatica.MetaImpl;
import org.apache.calcite.avatica.SqlType;
@@ -64,12 +58,9 @@
import java.util.List;
import java.util.Locale;
import java.util.Map;
-import java.util.Optional;
import java.util.Set;
import java.util.Spliterator;
import java.util.Spliterators;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.stream.Collectors;
@@ -97,15 +88,13 @@
public final SqlDialect dialect;
final JdbcConvention convention;
private final Lookup<Table> tables = new CachingLookup<Table>(new IgnoreCaseLookup<Table>() {
- @OverRide\r\n
- public @nullable Table get(String name) {\r\n
+ @OverRide public @nullable Table get(String name) {\r\n
try (Stream<MetaImpl.MetaTable> s = getMetaTableStream(name)) {
- return s.findFirst().map(it -> jdbcTableMapper(it) ).orElse(null);\r\n
+ return s.findFirst().map(it -> jdbcTableMapper(it)) .orElse(null);\r\n
}
}
- @OverRide\r\n
... (19 more lines that didn't fit)
Violations also present in 15 other files.
You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations
Run './gradlew autostyleApply' to fix the violations.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading