Skip to content

Commit

Permalink
Remove multiple blank lines after import statements
Browse files Browse the repository at this point in the history
A single blank line between imports and the following javadoc is enough.
  • Loading branch information
vlsi committed Nov 29, 2020
1 parent f3a9f6f commit b75c549
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ allprojects {
"static "
)
removeUnusedImports()
replaceRegex("Avoid 2+ blank lines after import", "^import\\s+([^;]+)\\s*;\\n{3,}", "import \$1;\n\n")
indentWithSpaces(2)
replaceRegex("@Override should not be on its own line", "(@Override)\\s{2,}", "\$1 ")
replaceRegex("@Test should not be on its own line", "(@Test)\\s{2,}", "\$1 ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.apache.calcite.rel.convert.ConverterRule;
import org.apache.calcite.rel.logical.LogicalCalc;


/**
* Rule to convert a {@link org.apache.calcite.rel.logical.LogicalCalc} to an
* {@link EnumerableCalc}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

import java.util.List;


/** Implementation of {@link org.apache.calcite.rel.core.Project} in
* {@link org.apache.calcite.adapter.enumerable.EnumerableConvention enumerable calling convention}. */
public class EnumerableProject extends Project implements EnumerableRel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.apache.calcite.rel.convert.ConverterRule;
import org.apache.calcite.rel.logical.LogicalProject;


/**
* Rule to convert a {@link org.apache.calcite.rel.logical.LogicalProject} to an
* {@link EnumerableProject}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.apache.calcite.rel.logical.LogicalAggregate;
import org.apache.calcite.util.ImmutableIntList;


/**
* Rule to convert a {@link LogicalAggregate}
* to an {@link EnumerableSortedAggregate}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.apache.calcite.rel.RelNode;
import org.apache.calcite.rel.convert.ConverterRule;


/**
* Rule to convert a relational expression from
* {@link org.apache.calcite.plan.Convention#NONE}
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/org/apache/calcite/rex/RexUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;


/**
* Utility methods concerning row-expressions.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import org.apache.calcite.sql.SqlOperator;
import org.apache.calcite.sql.parser.SqlParserPos;



/**
* Utilities concerning {@link SqlNode} for DDL.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import java.util.List;


/**
* Base class for parse trees of {@code DROP TABLE}, {@code DROP VIEW},
* {@code DROP MATERIALIZED VIEW} and {@code DROP TYPE} statements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

import com.google.common.collect.ImmutableList;


/**
* Mock operator table for testing purposes. Contains the standard SQL operator
* table, plus a list of operators.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;


/**
* Checks renaming of fields (also upper, lower cases) during projections.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assumptions.assumeTrue;


/**
* Util class which needs to be in the same package as {@link CalciteAssert}
* due to package-private visibility.
Expand Down

0 comments on commit b75c549

Please sign in to comment.