Polish: combine catches block with same body
This commit is contained in:
committed by
Juergen Hoeller
parent
f835f7b500
commit
7bce04c06c
@@ -847,12 +847,7 @@ public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
try {
|
||||
doJtaBegin(txObject, definition);
|
||||
}
|
||||
catch (NotSupportedException ex) {
|
||||
// assume nested transaction not supported
|
||||
throw new NestedTransactionNotSupportedException(
|
||||
"JTA implementation does not support nested transactions", ex);
|
||||
}
|
||||
catch (UnsupportedOperationException ex) {
|
||||
catch (NotSupportedException | UnsupportedOperationException ex) {
|
||||
// assume nested transaction not supported
|
||||
throw new NestedTransactionNotSupportedException(
|
||||
"JTA implementation does not support nested transactions", ex);
|
||||
|
||||
Reference in New Issue
Block a user