Skip to content

Commit 4ffd045

Browse files
committed
Set can be final
1 parent 6a788a1 commit 4ffd045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/common/util/concurrent/ThreadContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ private ThreadContextStruct putResponseHeaders(Map<String, Set<String>> headers)
511511
String key = entry.getKey();
512512
final Set<String> existingValues = newResponseHeaders.get(key);
513513
if (existingValues != null) {
514-
Set<String> newValues =
514+
final Set<String> newValues =
515515
Stream.concat(entry.getValue().stream(), existingValues.stream()).collect(LINKED_HASH_SET_COLLECTOR);
516516
newResponseHeaders.put(key, Collections.unmodifiableSet(newValues));
517517
} else {

0 commit comments

Comments
 (0)