Skip to content

Commit 46db372

Browse files
committed
Polishing
1 parent 9125827 commit 46db372

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -33,9 +33,9 @@
3333
* A base class for working with message headers in simple messaging protocols that
3434
* support basic messaging patterns. Provides uniform access to specific values common
3535
* across protocols such as a destination, message type (e.g. publish, subscribe, etc),
36-
* session id, and others.
36+
* session ID, and others.
3737
*
38-
* <p>Use one of the static factory method in this class, then call getters and setters,
38+
* <p>Use one of the static factory methods in this class, then call getters and setters,
3939
* and at the end if necessary call {@link #toMap()} to obtain the updated headers.
4040
*
4141
* @author Rossen Stoyanchev
@@ -91,7 +91,8 @@ public class SimpMessageHeaderAccessor extends NativeMessageHeaderAccessor {
9191

9292
/**
9393
* A constructor for creating new message headers.
94-
* This constructor is protected. See factory methods in this and subclasses.
94+
* <p>This constructor is protected. See factory methods in this class
95+
* and subclasses.
9596
*/
9697
protected SimpMessageHeaderAccessor(SimpMessageType messageType,
9798
@Nullable Map<String, List<String>> externalSourceHeaders) {
@@ -103,8 +104,9 @@ protected SimpMessageHeaderAccessor(SimpMessageType messageType,
103104
}
104105

105106
/**
106-
* A constructor for accessing and modifying existing message headers. This
107-
* constructor is protected. See factory methods in this and subclasses.
107+
* A constructor for accessing and modifying existing message headers.
108+
* <p>This constructor is protected. See factory methods in this class
109+
* and subclasses.
108110
*/
109111
protected SimpMessageHeaderAccessor(Message<?> message) {
110112
super(message);

spring-messaging/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -30,15 +30,15 @@
3030
import org.springframework.util.ObjectUtils;
3131

3232
/**
33-
* {@link MessageHeaderAccessor} sub-class that supports storage and access of
33+
* {@link MessageHeaderAccessor} subclass that supports storage and access of
3434
* headers from an external source such as a message broker. Headers from the
3535
* external source are kept separate from other headers, in a sub-map under the
3636
* key {@link #NATIVE_HEADERS}. This allows separating processing headers from
3737
* headers that need to be sent to or received from the external source.
3838
*
3939
* <p>This class is likely to be used indirectly through a protocol-specific
40-
* subclass that also provide factory methods to translate
41-
* message headers to and from an external messaging source.
40+
* subclass that also provides factory methods to translate message headers
41+
* to and from an external messaging source.
4242
*
4343
* @author Rossen Stoyanchev
4444
* @since 4.0

0 commit comments

Comments
 (0)