Skip to content

Commit cf0c276

Browse files
authored
Remove usages of Commons Lang 2 (#212)
1 parent d50f165 commit cf0c276

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/jenkins/plugins/http_request/HttpRequestExecution.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import javax.net.ssl.X509ExtendedTrustManager;
2525

2626
import org.apache.commons.io.IOUtils;
27-
import org.apache.commons.lang.StringUtils;
2827
import org.apache.http.HttpEntity;
2928
import org.apache.http.HttpHeaders;
3029
import org.apache.http.HttpHost;
@@ -185,9 +184,9 @@ private HttpRequestExecution(
185184
this.httpMode = httpMode;
186185
this.ignoreSslErrors = ignoreSslErrors;
187186

188-
if (StringUtils.isNotBlank(httpProxy)) {
187+
if (httpProxy != null && !httpProxy.isBlank()) {
189188
this.httpProxy = HttpHost.create(httpProxy);
190-
if (StringUtils.isNotBlank(proxyAuthentication)) {
189+
if (proxyAuthentication != null && !proxyAuthentication.isBlank()) {
191190

192191
StandardCredentials credential = CredentialsMatchers.firstOrNull(
193192
CredentialsProvider.lookupCredentials(

0 commit comments

Comments
 (0)