MessageHeaders returns completely immutable entry set (no entry.setValue call allowed)

Issue: SPR-13385
This commit is contained in:
Juergen Hoeller
2015-08-25 17:54:54 +02:00
parent 5f3559fbad
commit 8cd283729b

View File

@@ -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) {