From b388976ac8711e97300d8ecacc2e8a7943eef024 Mon Sep 17 00:00:00 2001 From: Lars Grefer Date: Fri, 9 Aug 2019 02:46:20 +0200 Subject: [PATCH] fix checkstyle --- .../org/springframework/security/crypto/bcrypt/BCrypt.java | 1 - .../servlet/request/SecurityMockMvcRequestPostProcessors.java | 1 - .../security/web/access/WebInvocationPrivilegeEvaluator.java | 3 +-- .../security/web/servletapi/HttpServletRequestFactory.java | 3 +-- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java b/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java index 7ccaa91b9e..d38d4d6f12 100644 --- a/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java +++ b/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java @@ -13,7 +13,6 @@ // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. package org.springframework.security.crypto.bcrypt; -import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.util.Arrays; diff --git a/test/src/main/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessors.java b/test/src/main/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessors.java index 83324f7985..f869e26284 100644 --- a/test/src/main/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessors.java +++ b/test/src/main/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessors.java @@ -17,7 +17,6 @@ package org.springframework.security.test.web.servlet.request; import java.io.IOException; import java.io.InputStream; -import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; diff --git a/web/src/main/java/org/springframework/security/web/access/WebInvocationPrivilegeEvaluator.java b/web/src/main/java/org/springframework/security/web/access/WebInvocationPrivilegeEvaluator.java index 15003a50e2..8cfb892b0f 100644 --- a/web/src/main/java/org/springframework/security/web/access/WebInvocationPrivilegeEvaluator.java +++ b/web/src/main/java/org/springframework/security/web/access/WebInvocationPrivilegeEvaluator.java @@ -52,6 +52,5 @@ public interface WebInvocationPrivilegeEvaluator { * be used in evaluation whether access should be granted. * @return true if access is allowed, false if denied */ - boolean isAllowed(String contextPath, String uri, String method, - Authentication authentication); + boolean isAllowed(String contextPath, String uri, String method, Authentication authentication); } diff --git a/web/src/main/java/org/springframework/security/web/servletapi/HttpServletRequestFactory.java b/web/src/main/java/org/springframework/security/web/servletapi/HttpServletRequestFactory.java index 43b165685c..81a5d443e7 100644 --- a/web/src/main/java/org/springframework/security/web/servletapi/HttpServletRequestFactory.java +++ b/web/src/main/java/org/springframework/security/web/servletapi/HttpServletRequestFactory.java @@ -34,6 +34,5 @@ interface HttpServletRequestFactory { * @param response the original {@link HttpServletResponse}. Cannot be null. * @return a non-null HttpServletRequest */ - HttpServletRequest create(HttpServletRequest request, - HttpServletResponse response); + HttpServletRequest create(HttpServletRequest request, HttpServletResponse response); }