SEC-2955: Convert to "static" for inner classes

This commit is contained in:
Alex Panchenko 2015-04-07 09:32:56 +06:00 committed by Rob Winch
parent 1a716d0593
commit 0a118336d4
5 changed files with 5 additions and 5 deletions

View File

@ -660,7 +660,7 @@ public class BasicLookupStrategy implements LookupStrategy {
} }
} }
private class StubAclParent implements Acl { private static class StubAclParent implements Acl {
private final Long id; private final Long id;
public StubAclParent(Long id) { public StubAclParent(Long id) {

View File

@ -410,7 +410,7 @@ public class MessageSecurityMetadataSourceRegistry {
return "hasAnyAuthority('" + anyAuthorities + "')"; return "hasAnyAuthority('" + anyAuthorities + "')";
} }
private class PreBuiltMatcherBuilder implements MatcherBuilder { private static class PreBuiltMatcherBuilder implements MatcherBuilder {
private MessageMatcher<?> matcher; private MessageMatcher<?> matcher;
private PreBuiltMatcherBuilder(MessageMatcher<?> matcher) { private PreBuiltMatcherBuilder(MessageMatcher<?> matcher) {

View File

@ -170,7 +170,7 @@ public abstract class AbstractSecurityWebSocketMessageBrokerConfigurer extends
protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) { protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) {
} }
private class WebSocketMessageSecurityMetadataSourceRegistry extends private static class WebSocketMessageSecurityMetadataSourceRegistry extends
MessageSecurityMetadataSourceRegistry { MessageSecurityMetadataSourceRegistry {
@Override @Override
public MessageSecurityMetadataSource createMetadataSource() { public MessageSecurityMetadataSource createMetadataSource() {

View File

@ -279,7 +279,7 @@ public class MapBasedMethodSecurityMetadataSource extends
* inherits but does not redeclare a method, the registered Class will be the Class * inherits but does not redeclare a method, the registered Class will be the Class
* we're invoking against and the Method will provide details of the declared class. * we're invoking against and the Method will provide details of the declared class.
*/ */
private class RegisteredMethod { private static class RegisteredMethod {
private final Method method; private final Method method;
private final Class<?> registeredJavaType; private final Class<?> registeredJavaType;

View File

@ -336,7 +336,7 @@ public class FilterChainProxy extends GenericFilterBean {
void validate(FilterChainProxy filterChainProxy); void validate(FilterChainProxy filterChainProxy);
} }
private class NullFilterChainValidator implements FilterChainValidator { private static class NullFilterChainValidator implements FilterChainValidator {
public void validate(FilterChainProxy filterChainProxy) { public void validate(FilterChainProxy filterChainProxy) {
} }
} }