HHH-13926 Remove no longer used parameters

This commit is contained in:
Sanne Grinovero 2020-07-21 10:35:33 +02:00
parent 3a2283335e
commit c8fabbb2b0

View File

@ -48,14 +48,14 @@ protected BasicExpectation(int expectedRowCount) {
public final void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition, String statementSQL) { public final void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition, String statementSQL) {
rowCount = determineRowCount( rowCount, statement ); rowCount = determineRowCount( rowCount, statement );
if ( batchPosition < 0 ) { if ( batchPosition < 0 ) {
checkNonBatched( rowCount, statement, statementSQL ); checkNonBatched( rowCount, statementSQL );
} }
else { else {
checkBatched( rowCount, batchPosition, statement, statementSQL ); checkBatched( rowCount, batchPosition, statementSQL );
} }
} }
private void checkBatched(int rowCount, int batchPosition, PreparedStatement statement, String statementSQL) { private void checkBatched(int rowCount, int batchPosition, String statementSQL) {
if ( rowCount == -2 ) { if ( rowCount == -2 ) {
LOG.debugf( "Success of batch update unknown: %s", batchPosition ); LOG.debugf( "Success of batch update unknown: %s", batchPosition );
} }
@ -80,7 +80,7 @@ else if ( rowCount == -3 ) {
} }
} }
private void checkNonBatched(int rowCount, PreparedStatement statement, String statementSQL) { private void checkNonBatched(int rowCount, String statementSQL) {
if ( expectedRowCount > rowCount ) { if ( expectedRowCount > rowCount ) {
throw new StaleStateException( throw new StaleStateException(
"Unexpected row count: " + rowCount + "; expected: " + expectedRowCount "Unexpected row count: " + rowCount + "; expected: " + expectedRowCount