INT-2254 backporting to maint branch

This commit is contained in:
Oleg Zhurakousky
2011-11-23 09:00:51 -05:00
committed by Mark Fisher
parent 58d41541d1
commit 495cf53ac6
2 changed files with 17 additions and 7 deletions

View File

@@ -183,7 +183,7 @@ public final class MessageBuilder<T> {
/**
* Copy the name-value pairs from the provided Map. This operation will <em>not</em> overwrite any existing values.
*/
public MessageBuilder<T> copyHeadersIfAbsent(Map<String, Object> headersToCopy) {
public MessageBuilder<T> copyHeadersIfAbsent(Map<String, ?> headersToCopy) {
Set<String> keys = headersToCopy.keySet();
for (String key : keys) {
if (!this.isReadOnly(key)) {