diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java index 9bfacb2151..89759e5515 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java @@ -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. * * @param batchIdentifier {@link BatchIdentifier} reference diff --git a/hibernate-core/src/test/java/org/hibernate/test/util/jdbc/PreparedStatementSpyConnectionProvider.java b/hibernate-core/src/test/java/org/hibernate/test/util/jdbc/PreparedStatementSpyConnectionProvider.java index 455404356b..69ee14569c 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/util/jdbc/PreparedStatementSpyConnectionProvider.java +++ b/hibernate-core/src/test/java/org/hibernate/test/util/jdbc/PreparedStatementSpyConnectionProvider.java @@ -157,11 +157,11 @@ public class PreparedStatementSpyConnectionProvider extends ConnectionProviderDe List preparedStatements = getPreparedStatements( sql ); if ( preparedStatements.isEmpty() ) { 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 ) { throw new IllegalArgumentException( "There are " + preparedStatements - .size() + " PreparedStatements for this SQL statement " + sql ); + .size() + " PreparedStatements for this SQL statement: " + sql ); } return preparedStatements.get( 0 ); }