mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-16 06:56:24 +00:00
Reuse Function.identity()
This commit is contained in:
parent
70521e0207
commit
1898dffcdb
@ -37,6 +37,7 @@
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.apache.hc.client5.http.utils.DateUtils;
|
||||
@ -449,7 +450,7 @@ public Set<String> getVariants() {
|
||||
@Deprecated
|
||||
public Map<String, String> getVariantMap() {
|
||||
return variants != null ? variants.stream()
|
||||
.collect(Collectors.toMap(e -> e, e -> e + requestURI)) : Collections.emptyMap();
|
||||
.collect(Collectors.toMap(Function.identity(), e -> e + requestURI)) : Collections.emptyMap();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user