Skip to content

Commit ee3b339

Browse files
nathan.xugavinking
authored andcommitted
fix some obvious defect in javadoc for resource/transaction package
1 parent 86a43ca commit ee3b339

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/DdlTransactionIsolatorJtaImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public Connection getIsolatedConnection(boolean autocommit) {
8181
}
8282
}
8383
catch (SQLException e) {
84-
throw jdbcContext.getSqlExceptionHelper().convert( e, "Unable set JDBC Connection for DDL execution to autocommit" );
84+
throw jdbcContext.getSqlExceptionHelper().convert( e, "Unable to set JDBC Connection for DDL execution to autocommit" );
8585
}
8686
}
8787
return jdbcConnection;

hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/JtaTransactionCoordinatorImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public void removeObserver(TransactionObserver observer) {
376376

377377
/**
378378
* Implementation of the LocalInflow for this TransactionCoordinator. Allows the
379-
* local transaction ({@link org.hibernate.Transaction} to callback into this
379+
* local transaction ({@link org.hibernate.Transaction}) to callback into this
380380
* TransactionCoordinator for the purpose of driving the underlying JTA transaction.
381381
*/
382382
public class TransactionDriverControlImpl implements TransactionDriver {

hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/synchronization/SynchronizationCallbackCoordinatorTrackingImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void reset() {
3535
// 1) on initialization, and
3636
// 2) after "after completion" handling is finished.
3737
//
38-
// Here we use that to "clear out" all 'delayed after-completion" state. The registrationThreadId will
38+
// Here we use that to "clear out" all "delayed after-completion" state. The registrationThreadId will
3939
// "lazily" be re-populated on the next synchronizationRegistered call to allow for the potential of the
4040
// next Session transaction occurring on a different thread (though that transaction would need to completely
4141
// operate on that thread).
@@ -46,7 +46,7 @@ public void reset() {
4646
public void afterCompletion(int status) {
4747
log.tracef( "Synchronization coordinator: afterCompletion(status=%s)", status );
4848

49-
// The whole concept of "tracking" comes down to this code block..
49+
// The whole concept of "tracking" comes down to this code block.
5050
// Essentially we need to see if we can process the callback immediately. So here we check whether the
5151
// current call is happening on the same thread as the thread under which we registered the Synchronization.
5252
// As far as we know, this can only ever happen in the rollback case where the transaction had been rolled

hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/synchronization/SynchronizationCallbackTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Defines "inflow" for JTA transactions from the perspective of Hibernate's registered JTA Synchronization
99
* back into the TransactionCoordinator by means of the SynchronizationCallbackCoordinator.
1010
* <p>
11-
* That's a mouthful :) The way it works is like this...<ul>
11+
* That's a mouthful, :). The way it works is like this...<ul>
1212
* <li>
1313
* Hibernate will register a JTA {@link jakarta.transaction.Synchronization} implementation
1414
* ({@link RegisteredSynchronization}) which allows

hibernate-core/src/main/java/org/hibernate/resource/transaction/spi/TransactionCoordinatorBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
public interface TransactionCoordinatorBuilder extends Service {
2222
/**
23-
* Access to options to are specific to each {@link TransactionCoordinator} instance.
23+
* Access to options that are specific to each {@link TransactionCoordinator} instance.
2424
*/
2525
interface Options {
2626
/**

hibernate-core/src/main/java/org/hibernate/resource/transaction/spi/TransactionCoordinatorOwner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ default void startTransactionBoundary() {
3737
}
3838

3939
/**
40-
* A after-begin callback from the coordinator to its owner.
40+
* An after-begin callback from the coordinator to its owner.
4141
*/
4242
void afterTransactionBegin();
4343

0 commit comments

Comments
 (0)