MessageHeaders returns completely immutable entry set (no entry.setValue call allowed)
Issue: SPR-13385
This commit is contained in:
@@ -207,7 +207,7 @@ public class MessageHeaders implements Map<String, Object>, Serializable {
|
||||
}
|
||||
|
||||
public Set<Map.Entry<String, Object>> entrySet() {
|
||||
return Collections.unmodifiableSet(this.headers.entrySet());
|
||||
return Collections.unmodifiableMap(this.headers).entrySet();
|
||||
}
|
||||
|
||||
public Object get(Object key) {
|
||||
|
||||
Reference in New Issue
Block a user