Skip to content

Commit

Permalink
Correct mismatched comments (apache#26752)
Browse files Browse the repository at this point in the history
  • Loading branch information
yx9o authored Jul 4, 2023
1 parent 1945d85 commit 383f7d7
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
public final class DCLStatementAssert {

/**
* Assert DAL statement is correct with expected parser result.
* Assert DCL statement is correct with expected parser result.
*
* @param assertContext assert context
* @param actual actual DAL statement
* @param expected expected DAL statement test case
* @param actual actual DCL statement
* @param expected expected DCL statement test case
*/
public static void assertIs(final SQLCaseAssertContext assertContext, final DCLStatement actual, final SQLParserTestCase expected) {
if (actual instanceof GrantStatement) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import static org.hamcrest.MatcherAssert.assertThat;

/**
* MySQL Grant statement assert.
* MySQL grant statement assert.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class MySQLGrantStatementAssert {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
import static org.hamcrest.MatcherAssert.assertThat;

/**
* MySQL Revoke statement assert.
* MySQL revoke statement assert.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class MySQLRevokeStatementAssert {

/**
* Assert MySQL Revoke statement is correct with expected parser result.
* Assert MySQL revoke statement is correct with expected parser result.
*
* @param assertContext assert context
* @param actual actual MySQL revoke statement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.dcl.GrantStatementTestCase;

/**
* SQLServer Grant statement assert.
* SQLServer grant statement assert.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class SQLServerGrantStatementAssert {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.dcl.RevokeStatementTestCase;

/**
* SQLServer Revoke statement assert.
* SQLServer revoke statement assert.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class SQLServerRevokeStatementAssert {

/**
* Assert SQLServer Revoke statement is correct with expected parser result.
* Assert SQLServer revoke statement is correct with expected parser result.
*
* @param assertContext assert context
* @param actual actual SQLServer revoke statement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public final class SQLServerSetUserStatementAssert {
*
* @param assertContext assert context
* @param actual actual SQLServer set user statement
* @param expected expected SQLServer set user statement test case
* @param expected expected set user statement test case
*/
public static void assertIs(final SQLCaseAssertContext assertContext, final SQLServerSetUserStatement actual, final SetUserStatementTestCase expected) {
if (null != expected.getUser()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.rdl.rule.single.SetDefaultSingleTableStorageUnitStatementTestCase;

/**
* Create RDL Statement assert.
* Create rule statement assert.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class CreateRuleStatementAssert {

/**
* Assert create RDL statement is correct with expected parser result.
* Assert create rule statement is correct with expected parser result.
*
* @param assertContext assert context
* @param actual actual create RDL statement
* @param expected expected create RDL statement test case
* @param actual actual create rule statement
* @param expected expected create rule statement test case
*/
public static void assertIs(final SQLCaseAssertContext assertContext, final CreateRuleStatement actual, final SQLParserTestCase expected) {
if (actual instanceof CreateEncryptRuleStatement) {
Expand All @@ -73,8 +73,7 @@ public static void assertIs(final SQLCaseAssertContext assertContext, final Crea
} else if (actual instanceof CreateShardingTableReferenceRuleStatement) {
CreateShardingTableReferenceRuleStatementAssert.assertIs(assertContext, (CreateShardingTableReferenceRuleStatement) actual, (CreateShardingTableReferenceRuleStatementTestCase) expected);
} else if (actual instanceof CreateBroadcastTableRuleStatement) {
CreateBroadcastTableRuleStatementAssert.assertIs(assertContext, (CreateBroadcastTableRuleStatement) actual,
(CreateBroadcastTableRuleStatementTestCase) expected);
CreateBroadcastTableRuleStatementAssert.assertIs(assertContext, (CreateBroadcastTableRuleStatement) actual, (CreateBroadcastTableRuleStatementTestCase) expected);
} else if (actual instanceof CreateShardingTableRuleStatement) {
CreateShardingTableRuleStatementAssert.assertIs(assertContext, (CreateShardingTableRuleStatement) actual, expected);
} else if (actual instanceof CreateShadowRuleStatement) {
Expand Down

0 comments on commit 383f7d7

Please sign in to comment.