Nullability fine-tuning based on IntelliJ IDEA 2018.3 inspection
Issue: SPR-15540
(cherry picked from commit bf272b0b21)
This commit is contained in:
@@ -709,7 +709,7 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
* @see #FALLBACK_TRANSACTION_MANAGER_NAMES
|
||||
*/
|
||||
@Nullable
|
||||
protected TransactionManager findTransactionManager(UserTransaction ut) {
|
||||
protected TransactionManager findTransactionManager(@Nullable UserTransaction ut) {
|
||||
if (ut instanceof TransactionManager) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("JTA UserTransaction object [" + ut + "] implements TransactionManager");
|
||||
@@ -864,7 +864,7 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
* <p>Calls {@code applyIsolationLevel} and {@code applyTimeout}
|
||||
* before invoking the UserTransaction's {@code begin} method.
|
||||
* @param txObject the JtaTransactionObject containing the UserTransaction
|
||||
* @param definition TransactionDefinition instance, describing propagation
|
||||
* @param definition the TransactionDefinition instance, describing propagation
|
||||
* behavior, isolation level, read-only flag, timeout, and transaction name
|
||||
* @throws NotSupportedException if thrown by JTA methods
|
||||
* @throws SystemException if thrown by JTA methods
|
||||
@@ -1139,7 +1139,7 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
* If none of the two is available, a warning will be logged.
|
||||
* <p>Can be overridden in subclasses, for specific JTA implementations.
|
||||
* @param txObject the current transaction object
|
||||
* @param synchronizations List of TransactionSynchronization objects
|
||||
* @param synchronizations a List of TransactionSynchronization objects
|
||||
* @throws RollbackException if thrown by JTA methods
|
||||
* @throws SystemException if thrown by JTA methods
|
||||
* @see #getTransactionManager()
|
||||
|
||||
Reference in New Issue
Block a user