File tree 1 file changed +3
-3
lines changed
spring-jms/src/main/java/org/springframework/jms/support
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -217,7 +217,7 @@ public static void commitIfNecessary(Session session) throws JMSException {
217
217
try {
218
218
session .commit ();
219
219
}
220
- catch (jakarta .jms .TransactionInProgressException | jakarta . jms . IllegalStateException ex ) {
220
+ catch (jakarta .jms .TransactionInProgressException ex ) {
221
221
// Ignore -> can only happen in case of a JTA transaction.
222
222
}
223
223
}
@@ -232,7 +232,7 @@ public static void rollbackIfNecessary(Session session) throws JMSException {
232
232
try {
233
233
session .rollback ();
234
234
}
235
- catch (jakarta .jms .TransactionInProgressException | jakarta . jms . IllegalStateException ex ) {
235
+ catch (jakarta .jms .TransactionInProgressException ex ) {
236
236
// Ignore -> can only happen in case of a JTA transaction.
237
237
}
238
238
}
You can’t perform that action at this time.
0 commit comments