Skip to content

Commit 3bd2154

Browse files
committed
Polishing
1 parent 0f42f38 commit 3bd2154

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

spring-messaging/src/main/java/org/springframework/messaging/core/AbstractMessageSendingTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public D getDefaultDestination() {
8181
* @param messageConverter the message converter to use
8282
*/
8383
public void setMessageConverter(MessageConverter messageConverter) {
84-
Assert.notNull(messageConverter, "'messageConverter' must not be null");
84+
Assert.notNull(messageConverter, "MessageConverter must not be null");
8585
this.converter = messageConverter;
8686
}
8787

spring-web/src/main/java/org/springframework/web/server/session/InMemoryWebSessionStore.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.web.server.session;
1718

1819
import java.time.Clock;
@@ -57,7 +58,7 @@ public class InMemoryWebSessionStore implements WebSessionStore {
5758
* @param clock the clock to use
5859
*/
5960
public void setClock(Clock clock) {
60-
Assert.notNull(clock, "'clock' is required.");
61+
Assert.notNull(clock, "Clock is required");
6162
this.clock = clock;
6263
}
6364

@@ -93,7 +94,8 @@ public Mono<WebSession> updateLastAccessTime(WebSession webSession) {
9394
});
9495
}
9596

96-
/* Private methods for InMemoryWebSession */
97+
98+
// Private methods for InMemoryWebSession
9799

98100
private Mono<Void> changeSessionId(String oldId, WebSession session) {
99101
this.sessions.remove(oldId);
@@ -121,7 +123,6 @@ private class InMemoryWebSession implements WebSession {
121123

122124
private volatile boolean started;
123125

124-
125126
InMemoryWebSession() {
126127
this.id = new AtomicReference<>(String.valueOf(idGenerator.generateId()));
127128
this.attributes = new ConcurrentHashMap<>();
@@ -139,7 +140,6 @@ private class InMemoryWebSession implements WebSession {
139140
this.started = existingSession.isStarted(); // Use method (explicit or implicit start)
140141
}
141142

142-
143143
@Override
144144
public String getId() {
145145
return this.id.get();
@@ -170,7 +170,6 @@ public Duration getMaxIdleTime() {
170170
return this.maxIdleTime;
171171
}
172172

173-
174173
@Override
175174
public void start() {
176175
this.started = true;

0 commit comments

Comments
 (0)