Commit 1a0afc6b authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Use Collection.removeIf() where possible"

Closes gh-13871
parent 1189ccc9
...@@ -102,7 +102,7 @@ public class HttpExchangeTracer { ...@@ -102,7 +102,7 @@ public class HttpExchangeTracer {
return new LinkedHashMap<>(); return new LinkedHashMap<>();
} }
Map<String, List<String>> headers = headersSupplier.get(); Map<String, List<String>> headers = headersSupplier.get();
headers.keySet().removeIf(s -> !headerPredicate.test(s)); headers.keySet().removeIf((header) -> !headerPredicate.test(header));
return headers; return headers;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment