From 9de5e3e0056d44e624a0b2428a2e207ce09e2949 Mon Sep 17 00:00:00 2001 From: Nathan Xu Date: Mon, 5 Oct 2020 10:58:33 +0100 Subject: [PATCH] HHH-14227 Some additional typos and message improvements --- .../src/main/java/org/hibernate/engine/spi/ActionQueue.java | 2 +- .../util/jdbc/PreparedStatementSpyConnectionProvider.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ); }