config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java
public HttpSecurity addFilter(Filter filter) {
		Class<? extends Filter> filterClass = filter.getClass();
		if (!comparator.isRegistered(filterClass)) {
			throw new IllegalArgumentException(
					"The Filter class "
							+ filterClass.getName()
							+ " does not have a registered order and cannot be added without a specified order. Consider using addFilterBefore or addFilterAfter instead.");
		}
		this.filters.add(filter);
		return this;
	}
public HttpSecurity addFilter(Filter filter) {
		Class<? extends Filter> filterClass = filter.getClass();
		if (!comparator.isRegistered(filterClass)) {
			throw new IllegalArgumentException(
					"The Filter class "
							+ filterClass.getName()
							+ " does not have a registered order and cannot be added without a specified order. Consider using addFilterBefore or addFilterAfter instead.");
		}
		this.filters.add(filter);
		return this;
	}
public HttpSecurity addFilter ( Filter filter ) { Class < ? extends Filter > filterClass = filter . getClass ( ) ; if ( ! comparator . isRegistered ( filterClass ) ) { throw new IllegalArgumentException ( "The Filter class " + filterClass . getName ( ) + " does not have a registered order and cannot be added without a specified order. Consider using addFilterBefore or addFilterAfter instead." ) ; } this . filters . add ( filter ) ; return this ; }
/*
(non-Javadoc)

@see
org.springframework.security.config.annotation.web.HttpSecurityBuilder#addFilter(javax.
servlet.Filter)
/ * ( non - Javadoc )