mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-26 03:19:02 +00:00
Refine if statement logic
See gh-20390
This commit is contained in:
committed by
Stephane Nicoll
parent
2ca20248e3
commit
9480e2d605
+1
-1
@@ -48,7 +48,7 @@ public class DefaultRepositorySystemSessionAutoConfiguration implements Reposito
|
||||
}
|
||||
|
||||
ProxySelector existing = session.getProxySelector();
|
||||
if (existing == null || !(existing instanceof CompositeProxySelector)) {
|
||||
if (!(existing instanceof CompositeProxySelector)) {
|
||||
JreProxySelector fallback = new JreProxySelector();
|
||||
ProxySelector selector = (existing != null) ? new CompositeProxySelector(Arrays.asList(existing, fallback))
|
||||
: fallback;
|
||||
|
||||
Reference in New Issue
Block a user