Commit 72a9eb8e authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #20390 from gir1yaphets

* pr/20390:
  Polish "Refine if statement logic"
  Refine if statement logic

Closes gh-20390
parents 2ca20248 1333af4d
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -48,7 +48,7 @@ public class DefaultRepositorySystemSessionAutoConfiguration implements Reposito ...@@ -48,7 +48,7 @@ public class DefaultRepositorySystemSessionAutoConfiguration implements Reposito
} }
ProxySelector existing = session.getProxySelector(); ProxySelector existing = session.getProxySelector();
if (existing == null || !(existing instanceof CompositeProxySelector)) { if (!(existing instanceof CompositeProxySelector)) {
JreProxySelector fallback = new JreProxySelector(); JreProxySelector fallback = new JreProxySelector();
ProxySelector selector = (existing != null) ? new CompositeProxySelector(Arrays.asList(existing, fallback)) ProxySelector selector = (existing != null) ? new CompositeProxySelector(Arrays.asList(existing, fallback))
: fallback; : fallback;
......
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