Skip to content

Commit ab861ba

Browse files
committed
Refactor
1 parent e82814b commit ab861ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock/JdbcLockRegistry.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,11 @@ public void unlock() {
362362
catch (TransientDataAccessException | TransactionTimedOutException | TransactionSystemException e) {
363363
// try again
364364
}
365+
catch (IllegalStateException e) {
366+
throw new IllegalStateException("Lock was released in the store due to expiration. " +
367+
"The integrity of data protected by this lock may have been compromised.");
368+
}
365369
catch (Exception e) {
366-
if (e instanceof IllegalStateException) {
367-
throw new IllegalStateException("Lock was released in the store due to expiration. " +
368-
"The integrity of data protected by this lock may have been compromised.");
369-
}
370370
throw new DataAccessResourceFailureException("Failed to release mutex at " + this.path, e);
371371
}
372372
}

0 commit comments

Comments
 (0)