Skip to content

Commit 8cd2837

Browse files
committed
MessageHeaders returns completely immutable entry set (no entry.setValue call allowed)
Issue: SPR-13385
1 parent 5f3559f commit 8cd2837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-messaging/src/main/java/org/springframework/messaging/MessageHeaders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public boolean containsValue(Object value) {
207207
}
208208

209209
public Set<Map.Entry<String, Object>> entrySet() {
210-
return Collections.unmodifiableSet(this.headers.entrySet());
210+
return Collections.unmodifiableMap(this.headers).entrySet();
211211
}
212212

213213
public Object get(Object key) {

0 commit comments

Comments
 (0)