Skip to content

Commit 370e3d6

Browse files
committed
Polishing
1 parent fc11321 commit 370e3d6

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

spring-context/src/main/java/org/springframework/cache/interceptor/AbstractFallbackCacheOperationSource.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -70,8 +70,7 @@ public abstract class AbstractFallbackCacheOperationSource implements CacheOpera
7070
* <p>As this base class is not marked Serializable, the cache will be recreated
7171
* after serialization - provided that the concrete subclass is Serializable.
7272
*/
73-
private final Map<Object, Collection<CacheOperation>> attributeCache =
74-
new ConcurrentHashMap<>(1024);
73+
private final Map<Object, Collection<CacheOperation>> attributeCache = new ConcurrentHashMap<>(1024);
7574

7675

7776
/**

spring-messaging/src/main/java/org/springframework/messaging/simp/broker/DefaultSubscriptionRegistry.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -361,8 +361,7 @@ public String toString() {
361361
private static class SessionSubscriptionRegistry {
362362

363363
// sessionId -> SessionSubscriptionInfo
364-
private final ConcurrentMap<String, SessionSubscriptionInfo> sessions =
365-
new ConcurrentHashMap<>();
364+
private final ConcurrentMap<String, SessionSubscriptionInfo> sessions = new ConcurrentHashMap<>();
366365

367366
public SessionSubscriptionInfo getSubscriptions(String sessionId) {
368367
return this.sessions.get(sessionId);
@@ -406,11 +405,10 @@ private static class SessionSubscriptionInfo {
406405
private final String sessionId;
407406

408407
// destination -> subscriptions
409-
private final Map<String, Set<Subscription>> destinationLookup =
410-
new ConcurrentHashMap<>(4);
408+
private final Map<String, Set<Subscription>> destinationLookup = new ConcurrentHashMap<>(4);
411409

412410
public SessionSubscriptionInfo(String sessionId) {
413-
Assert.notNull(sessionId, "sessionId must not be null");
411+
Assert.notNull(sessionId, "'sessionId' must not be null");
414412
this.sessionId = sessionId;
415413
}
416414

spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
*
4949
* @author Arjen Poutsma
5050
* @author Rossen Stoyanchev
51+
* @author Brian Clozel
5152
* @author Juergen Hoeller
5253
* @since 3.0
5354
*/

0 commit comments

Comments
 (0)