Skip to content

Commit

Permalink
Fix sonar issue (apache#28344)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Sep 2, 2023
1 parent 5ad75d3 commit 5046ba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class SQLExceptionTransformEngineTest {
class SQLExceptionTransformEngineTest {

private final DatabaseType databaseType = TypedSPILoader.getService(DatabaseType.class, "FIXTURE");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void assertGetGeneratedKeysWithPrimaryKeyIsNullInTransactional() throws SQLExcep
}

@Test
public void assertGetAutoGeneratedKeysAfterExecuteBatch() throws SQLException {
void assertGetAutoGeneratedKeysAfterExecuteBatch() throws SQLException {
try (
Connection connection = getReadwriteSplittingDataSource().getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO t_config(status) VALUES(?);", Statement.RETURN_GENERATED_KEYS)) {
Expand All @@ -144,7 +144,7 @@ public void assertGetAutoGeneratedKeysAfterExecuteBatch() throws SQLException {
}

@Test
public void assertGetAutoGeneratedKeysAfterExecuteBatchMultiValues() throws SQLException {
void assertGetAutoGeneratedKeysAfterExecuteBatchMultiValues() throws SQLException {
try (
Connection connection = getReadwriteSplittingDataSource().getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO t_config(status) VALUES(?),(?);", Statement.RETURN_GENERATED_KEYS)) {
Expand Down

0 comments on commit 5046ba6

Please sign in to comment.