Skip to content

Commit

Permalink
Add missing @OverRide annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Oct 5, 2021
1 parent ef40b52 commit a8a8a6b
Show file tree
Hide file tree
Showing 25 changed files with 192 additions and 192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,12 +656,12 @@ private static UnaryOperator<SqlParser.Config> getTransform(
* DDL statement. */
public static Matcher<SqlNode> isDdl() {
return new BaseMatcher<SqlNode>() {
public boolean matches(Object item) {
@Override public boolean matches(Object item) {
return item instanceof SqlNode
&& SqlKind.DDL.contains(((SqlNode) item).getKind());
}

public void describeTo(Description description) {
@Override public void describeTo(Description description) {
description.appendText("isDdl");
}
};
Expand All @@ -673,7 +673,7 @@ public void describeTo(Description description) {
private static Matcher<SqlNode> isQuoted(final int i,
final boolean quoted) {
return new CustomTypeSafeMatcher<SqlNode>("quoting") {
protected boolean matchesSafely(SqlNode item) {
@Override protected boolean matchesSafely(SqlNode item) {
final SqlCall valuesCall = (SqlCall) item;
final SqlCall rowCall = valuesCall.operand(0);
final SqlIdentifier id = rowCall.operand(0);
Expand Down Expand Up @@ -7409,7 +7409,7 @@ public void subTestIntervalSecondFailsValidation() {
.ok("INTERVAL '1:1' MINUTE TO SECOND");
}

private Consumer<List<? extends Throwable>> checkWarnings(
private static Consumer<List<? extends Throwable>> checkWarnings(
String... tokens) {
final List<String> messages = new ArrayList<>();
for (String token : tokens) {
Expand Down Expand Up @@ -9660,7 +9660,7 @@ private void check(
}
}

public void check(StringAndPos sap, SqlDialect dialect, String expected,
@Override public void check(StringAndPos sap, SqlDialect dialect, String expected,
Consumer<SqlParser> parserChecker) {
final UnaryOperator<SqlParser.Config> transform = getTransform(dialect);
final SqlNode sqlNode =
Expand Down Expand Up @@ -9694,7 +9694,7 @@ protected SqlNodeList parseStmtsAndHandleEx(String sql) {
return sqlNodeList;
}

public void checkExp(StringAndPos sap, SqlDialect dialect, String expected,
@Override public void checkExp(StringAndPos sap, SqlDialect dialect, String expected,
Consumer<SqlParser> parserChecker) {
final UnaryOperator<SqlParser.Config> transform = getTransform(dialect);
final SqlNode sqlNode =
Expand Down
Loading

0 comments on commit a8a8a6b

Please sign in to comment.