remove redundant modifiers found by checkstyle
This commit is contained in:
@@ -158,7 +158,7 @@ class DummyRequest extends HttpServletRequestWrapper {
|
||||
private String queryString;
|
||||
private String method;
|
||||
|
||||
public DummyRequest() {
|
||||
DummyRequest() {
|
||||
super(UNSUPPORTED_REQUEST);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ import org.springframework.expression.TypedValue;
|
||||
class DelegatingEvaluationContext implements EvaluationContext {
|
||||
private final EvaluationContext delegate;
|
||||
|
||||
public DelegatingEvaluationContext(EvaluationContext delegate) {
|
||||
DelegatingEvaluationContext(EvaluationContext delegate) {
|
||||
this.delegate = delegate;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -99,7 +99,7 @@ public final class ExpressionBasedFilterInvocationSecurityMetadataSource
|
||||
extends AbstractVariableEvaluationContextPostProcessor {
|
||||
private final AntPathRequestMatcher matcher;
|
||||
|
||||
public AntPathMatcherEvaluationContextPostProcessor(
|
||||
AntPathMatcherEvaluationContextPostProcessor(
|
||||
AntPathRequestMatcher matcher) {
|
||||
this.matcher = matcher;
|
||||
}
|
||||
@@ -114,7 +114,7 @@ public final class ExpressionBasedFilterInvocationSecurityMetadataSource
|
||||
extends AbstractVariableEvaluationContextPostProcessor {
|
||||
private final RequestMatcher matcher;
|
||||
|
||||
public RequestVariablesExtractorEvaluationContextPostProcessor(
|
||||
RequestVariablesExtractorEvaluationContextPostProcessor(
|
||||
RequestMatcher matcher) {
|
||||
this.matcher = matcher;
|
||||
}
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ class WebExpressionConfigAttribute implements ConfigAttribute,
|
||||
private final Expression authorizeExpression;
|
||||
private final EvaluationContextPostProcessor<FilterInvocation> postProcessor;
|
||||
|
||||
public WebExpressionConfigAttribute(Expression authorizeExpression,
|
||||
WebExpressionConfigAttribute(Expression authorizeExpression,
|
||||
EvaluationContextPostProcessor<FilterInvocation> postProcessor) {
|
||||
this.authorizeExpression = authorizeExpression;
|
||||
this.postProcessor = postProcessor;
|
||||
|
||||
+2
-2
@@ -58,11 +58,11 @@ final class DefaultWASUsernameAndGroupsExtractor implements WASUsernameAndGroups
|
||||
// SEC-803
|
||||
private static Class<?> wsCredentialClass = null;
|
||||
|
||||
public final List<String> getGroupsForCurrentUser() {
|
||||
public List<String> getGroupsForCurrentUser() {
|
||||
return getWebSphereGroups(getRunAsSubject());
|
||||
}
|
||||
|
||||
public final String getCurrentUserName() {
|
||||
public String getCurrentUserName() {
|
||||
return getSecurityName(getRunAsSubject());
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -210,8 +210,8 @@ public abstract class AbstractSecurityWebApplicationInitializer
|
||||
* @param filterName
|
||||
* @param filter
|
||||
*/
|
||||
private final void registerFilter(ServletContext servletContext,
|
||||
boolean insertBeforeOtherFilters, String filterName, Filter filter) {
|
||||
private void registerFilter(ServletContext servletContext,
|
||||
boolean insertBeforeOtherFilters, String filterName, Filter filter) {
|
||||
Dynamic registration = servletContext.addFilter(filterName, filter);
|
||||
if (registration == null) {
|
||||
throw new IllegalStateException(
|
||||
|
||||
+1
-1
@@ -269,7 +269,7 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
|
||||
HttpServletRequestWrapper {
|
||||
private final SaveContextOnUpdateOrErrorResponseWrapper response;
|
||||
|
||||
public SaveToSessionRequestWrapper(HttpServletRequest request,
|
||||
SaveToSessionRequestWrapper(HttpServletRequest request,
|
||||
SaveContextOnUpdateOrErrorResponseWrapper response) {
|
||||
super(request);
|
||||
this.response = response;
|
||||
|
||||
@@ -55,7 +55,7 @@ public final class DebugFilter implements Filter {
|
||||
this.fcp = fcp;
|
||||
}
|
||||
|
||||
public final void doFilter(ServletRequest srvltRequest,
|
||||
public void doFilter(ServletRequest srvltRequest,
|
||||
ServletResponse srvltResponse, FilterChain filterChain)
|
||||
throws ServletException, IOException {
|
||||
|
||||
@@ -153,7 +153,7 @@ public final class DebugFilter implements Filter {
|
||||
class DebugRequestWrapper extends HttpServletRequestWrapper {
|
||||
private static final Logger logger = new Logger();
|
||||
|
||||
public DebugRequestWrapper(HttpServletRequest request) {
|
||||
DebugRequestWrapper(HttpServletRequest request) {
|
||||
super(request);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class FirewalledResponse extends HttpServletResponseWrapper {
|
||||
private static final String LOCATION_HEADER = "Location";
|
||||
private static final String SET_COOKIE_HEADER = "Set-Cookie";
|
||||
|
||||
public FirewalledResponse(HttpServletResponse response) {
|
||||
FirewalledResponse(HttpServletResponse response) {
|
||||
super(response);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ final class RequestWrapper extends FirewalledRequest {
|
||||
private final String strippedPathInfo;
|
||||
private boolean stripPaths = true;
|
||||
|
||||
public RequestWrapper(HttpServletRequest request) {
|
||||
RequestWrapper(HttpServletRequest request) {
|
||||
super(request);
|
||||
strippedServletPath = strip(request.getServletPath());
|
||||
String pathInfo = strip(request.getPathInfo());
|
||||
@@ -144,7 +144,7 @@ final class RequestWrapper extends FirewalledRequest {
|
||||
* @param path the {@code path} that will be used to obtain the delegate
|
||||
* {@link RequestDispatcher} from the original {@link HttpServletRequest}.
|
||||
*/
|
||||
public FirewalledRequestAwareRequestDispatcher(String path) {
|
||||
FirewalledRequestAwareRequestDispatcher(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ class DefaultCsrfTokenMixin {
|
||||
* @param token the CSRF token value
|
||||
*/
|
||||
@JsonCreator
|
||||
public DefaultCsrfTokenMixin(@JsonProperty("headerName") String headerName,
|
||||
DefaultCsrfTokenMixin(@JsonProperty("headerName") String headerName,
|
||||
@JsonProperty("parameterName") String parameterName, @JsonProperty("token") String token) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ import com.fasterxml.jackson.annotation.*;
|
||||
abstract class SavedCookieMixin {
|
||||
|
||||
@JsonCreator
|
||||
public SavedCookieMixin(@JsonProperty("name") String name, @JsonProperty("value") String value,
|
||||
SavedCookieMixin(@JsonProperty("name") String name, @JsonProperty("value") String value,
|
||||
@JsonProperty("comment") String comment, @JsonProperty("domain") String domain,
|
||||
@JsonProperty("maxAge") int maxAge, @JsonProperty("path") String path,
|
||||
@JsonProperty("secure") boolean secure, @JsonProperty("version") int version) {
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ class SavedRequestAwareWrapper extends HttpServletRequestWrapper {
|
||||
// ~ Constructors
|
||||
// ===================================================================================================
|
||||
|
||||
public SavedRequestAwareWrapper(SavedRequest saved, HttpServletRequest request) {
|
||||
SavedRequestAwareWrapper(SavedRequest saved, HttpServletRequest request) {
|
||||
super(request);
|
||||
savedRequest = saved;
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ class DefaultCsrfServerTokenMixin {
|
||||
* @param token the CSRF token value
|
||||
*/
|
||||
@JsonCreator
|
||||
public DefaultCsrfServerTokenMixin(@JsonProperty("headerName") String headerName,
|
||||
DefaultCsrfServerTokenMixin(@JsonProperty("headerName") String headerName,
|
||||
@JsonProperty("parameterName") String parameterName, @JsonProperty("token") String token) {
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -170,7 +170,7 @@ final class HttpServlet3RequestFactory implements HttpServletRequestFactory {
|
||||
extends SecurityContextHolderAwareRequestWrapper {
|
||||
private final HttpServletResponse response;
|
||||
|
||||
public Servlet3SecurityContextHolderAwareRequestWrapper(
|
||||
Servlet3SecurityContextHolderAwareRequestWrapper(
|
||||
HttpServletRequest request, String rolePrefix,
|
||||
HttpServletResponse response) {
|
||||
super(request, HttpServlet3RequestFactory.this.trustResolver, rolePrefix);
|
||||
@@ -265,7 +265,7 @@ final class HttpServlet3RequestFactory implements HttpServletRequestFactory {
|
||||
private static class SecurityContextAsyncContext implements AsyncContext {
|
||||
private final AsyncContext asyncContext;
|
||||
|
||||
public SecurityContextAsyncContext(AsyncContext asyncContext) {
|
||||
SecurityContextAsyncContext(AsyncContext asyncContext) {
|
||||
this.asyncContext = asyncContext;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -258,7 +258,7 @@ public abstract class OnCommittedResponseWrapper extends HttpServletResponseWrap
|
||||
private class SaveContextPrintWriter extends PrintWriter {
|
||||
private final PrintWriter delegate;
|
||||
|
||||
public SaveContextPrintWriter(PrintWriter delegate) {
|
||||
SaveContextPrintWriter(PrintWriter delegate) {
|
||||
super(delegate);
|
||||
this.delegate = delegate;
|
||||
}
|
||||
@@ -498,7 +498,7 @@ public abstract class OnCommittedResponseWrapper extends HttpServletResponseWrap
|
||||
private class SaveContextServletOutputStream extends ServletOutputStream {
|
||||
private final ServletOutputStream delegate;
|
||||
|
||||
public SaveContextServletOutputStream(ServletOutputStream delegate) {
|
||||
SaveContextServletOutputStream(ServletOutputStream delegate) {
|
||||
this.delegate = delegate;
|
||||
}
|
||||
|
||||
@@ -652,4 +652,4 @@ public abstract class OnCommittedResponseWrapper extends HttpServletResponseWrap
|
||||
return getClass().getName() + "[delegate=" + this.delegate.toString() + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ class ELRequestMatcherContext {
|
||||
|
||||
private final HttpServletRequest request;
|
||||
|
||||
public ELRequestMatcherContext(HttpServletRequest request) {
|
||||
ELRequestMatcherContext(HttpServletRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user