Polishing

This commit is contained in:
Juergen Hoeller
2025-12-04 00:12:31 +01:00
parent 667851c0fa
commit 07c0213f20
21 changed files with 35 additions and 50 deletions
@@ -245,7 +245,7 @@ public class CachingConnectionFactory extends SingleConnectionFactory {
return null;
}
Deque<Session> sessionList = this.cachedSessions.computeIfAbsent(mode, k -> new ArrayDeque<>());
Deque<Session> sessionList = this.cachedSessions.computeIfAbsent(mode, key -> new ArrayDeque<>());
Session session = null;
synchronized (sessionList) {
if (!sessionList.isEmpty()) {
@@ -155,7 +155,7 @@ public class JmsResourceHolder extends ResourceHolderSupport {
this.sessions.add(session);
if (connection != null) {
Deque<Session> sessions =
this.sessionsPerConnection.computeIfAbsent(connection, k -> new ArrayDeque<>());
this.sessionsPerConnection.computeIfAbsent(connection, key -> new ArrayDeque<>());
sessions.add(session);
}
}