@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* 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" ) ;
* you may not use this file except in compliance with the License .
@ -19,7 +19,7 @@ package org.springframework.boot.devtools.remote.client;
@@ -19,7 +19,7 @@ package org.springframework.boot.devtools.remote.client;
import java.net.InetSocketAddress ;
import java.net.Proxy.Type ;
import java.net.URL ;
import java.util.Array s ;
import java.util.Collection s ;
import java.util.List ;
import java.util.concurrent.ExecutorService ;
import java.util.concurrent.Executors ;
@ -90,7 +90,7 @@ public class RemoteClientConfiguration implements InitializingBean {
@@ -90,7 +90,7 @@ public class RemoteClientConfiguration implements InitializingBean {
@Bean
public ClientHttpRequestFactory clientHttpRequestFactory ( ) {
List < ClientHttpRequestInterceptor > interceptors = Arrays . as List( getSecurityInterceptor ( ) ) ;
List < ClientHttpRequestInterceptor > interceptors = Collections . singleton List( getSecurityInterceptor ( ) ) ;
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory ( ) ;
Proxy proxy = this . properties . getRemote ( ) . getProxy ( ) ;
if ( proxy . getHost ( ) ! = null & & proxy . getPort ( ) ! = null ) {