mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Polishing
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user