Skip to content

Commit

Permalink
apply spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
TherChenYang committed Jan 25, 2024
1 parent 7754211 commit 2a69c05
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ public final ASTNode visitSpecialFunction(final SpecialFunctionContext ctx) {
}
return new FunctionSegment(ctx.getStart().getStartIndex(), ctx.getStop().getStopIndex(), ctx.getChild(0).getChild(0).getText(), getOriginalText(ctx));
}

@Override
public final ASTNode visitConversionFunction(final ConversionFunctionContext ctx) {
if (null != ctx.castFunction()) {
Expand All @@ -687,7 +687,7 @@ public final ASTNode visitConversionFunction(final ConversionFunctionContext ctx
}
return new FunctionSegment(ctx.getStart().getStartIndex(), ctx.getStop().getStopIndex(), ctx.getChild(0).getChild(0).getText(), getOriginalText(ctx));
}

@Override
public final ASTNode visitJsonFunction(final JsonFunctionContext ctx) {
if (null != ctx.jsonArrayFunction()) {
Expand Down Expand Up @@ -1423,12 +1423,12 @@ private int getStartIndexWithAlias(final SQLSegment sqlSegment, final AliasSegme
private int getStopIndexWithAlias(final SQLSegment sqlSegment, final AliasSegment alias) {
return null != alias && alias.getStopIndex() > sqlSegment.getStopIndex() ? alias.getStopIndex() : sqlSegment.getStopIndex();
}

@Override
public ASTNode visitIntoClause(final IntoClauseContext ctx) {
return visit(ctx.tableName());
}

@Override
public ASTNode visitFromClause(final FromClauseContext ctx) {
return visit(ctx.tableReferences());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public static void setModelSegment(final SelectStatement selectStatement, final
((OracleSelectStatement) selectStatement).setModelSegment(modelSegment);
}
}

/**
* Get into segment.
* @param selectStatement select statement
Expand All @@ -244,7 +244,7 @@ public static Optional<TableSegment> getIntoSegment(final SelectStatement select
}
return Optional.empty();
}

/**
* Set into segment.
* @param selectStatement select statement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
public final class SQLServerSelectStatement extends SelectStatement implements SQLServerStatement {

private LimitSegment limit;

private WithSegment withSegment;

private TableSegment intoSegment;

/**
* Get order by segment.
*
Expand All @@ -55,7 +55,7 @@ public Optional<LimitSegment> getLimit() {
public Optional<WithSegment> getWithSegment() {
return Optional.ofNullable(withSegment);
}

/**
* Get into segment.
* @return into segment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private static void assertModelClause(final SQLCaseAssertContext assertContext,
ModelClauseAssert.assertIs(assertContext, modelSegment.get(), expected.getModelClause());
}
}

private static void assertIntoClause(final SQLCaseAssertContext assertContext, final SelectStatement actual, final SelectStatementTestCase expected) {
Optional<TableSegment> intoSegment = SelectStatementHandler.getIntoSegment(actual);
if (null == expected.getIntoClause()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public final class SelectStatementTestCase extends SQLParserTestCase {

@XmlElement(name = "model")
private ExpectedModelClause modelClause;

@XmlElement(name = "into")
private ExpectedTable intoClause;
}

0 comments on commit 2a69c05

Please sign in to comment.