HHH-14227 Some additional typos and message improvements

This commit is contained in:
Nathan Xu 2020-10-05 10:58:33 +01:00 committed by Sanne Grinovero
parent de6736ba32
commit 9de5e3e005
2 changed files with 3 additions and 3 deletions

View File

@ -1101,7 +1101,7 @@ public class ActionQueue {
} }
/** /**
* Check if the this {@link BatchIdentifier} has a parent or grand parent * Check if this {@link BatchIdentifier} has a parent or grand parent
* matching the given {@link BatchIdentifier} reference. * matching the given {@link BatchIdentifier} reference.
* *
* @param batchIdentifier {@link BatchIdentifier} reference * @param batchIdentifier {@link BatchIdentifier} reference

View File

@ -157,11 +157,11 @@ public class PreparedStatementSpyConnectionProvider extends ConnectionProviderDe
List<PreparedStatement> preparedStatements = getPreparedStatements( sql ); List<PreparedStatement> preparedStatements = getPreparedStatements( sql );
if ( preparedStatements.isEmpty() ) { if ( preparedStatements.isEmpty() ) {
throw new IllegalArgumentException( throw new IllegalArgumentException(
"There is no PreparedStatement for this SQL statement " + sql ); "There is no PreparedStatement for this SQL statement: " + sql );
} }
else if ( preparedStatements.size() > 1 ) { else if ( preparedStatements.size() > 1 ) {
throw new IllegalArgumentException( "There are " + preparedStatements throw new IllegalArgumentException( "There are " + preparedStatements
.size() + " PreparedStatements for this SQL statement " + sql ); .size() + " PreparedStatements for this SQL statement: " + sql );
} }
return preparedStatements.get( 0 ); return preparedStatements.get( 0 );
} }