From 75f9adea87cb5310229e8e2c0db15161343bf11c Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 23 Nov 2020 12:14:22 -0500 Subject: [PATCH] Remove redundant returns. --- .../org/apache/hc/client5/http/impl/win/WinHttpClients.java | 4 ++-- .../org/apache/hc/client5/http/impl/auth/BasicAuthCache.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/httpclient5-win/src/main/java/org/apache/hc/client5/http/impl/win/WinHttpClients.java b/httpclient5-win/src/main/java/org/apache/hc/client5/http/impl/win/WinHttpClients.java index 47f3274ba..105005e3f 100644 --- a/httpclient5-win/src/main/java/org/apache/hc/client5/http/impl/win/WinHttpClients.java +++ b/httpclient5-win/src/main/java/org/apache/hc/client5/http/impl/win/WinHttpClients.java @@ -57,8 +57,8 @@ public class WinHttpClients { if (os != null && os.contains("windows")) { try { return Sspi.MAX_TOKEN_SIZE > 0; - } catch (final Exception ignore) { // Likely ClassNotFound - return false; + } catch (final Exception ignore) { + // Likely ClassNotFound } } return false; diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicAuthCache.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicAuthCache.java index 2a6f1a2e7..c22c57b30 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicAuthCache.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicAuthCache.java @@ -121,12 +121,10 @@ public class BasicAuthCache implements AuthCache { if (LOG.isWarnEnabled()) { LOG.warn("Unexpected I/O error while de-serializing auth scheme", ex); } - return null; } catch (final ClassNotFoundException ex) { if (LOG.isWarnEnabled()) { LOG.warn("Unexpected error while de-serializing auth scheme", ex); } - return null; } } return null;