@ -261,13 +261,13 @@ abstract class AbstractFilterRegistrationBean extends RegistrationBean {
DEFAULT_URL_MAPPINGS ) ;
DEFAULT_URL_MAPPINGS ) ;
}
}
else {
else {
if ( servletNames . size ( ) > 0 ) {
if ( ! servletNames . isEmpty ( ) ) {
this . logger . info ( "Mapping filter: '" + registration . getName ( )
this . logger . info ( "Mapping filter: '" + registration . getName ( )
+ "' to servlets: " + servletNames ) ;
+ "' to servlets: " + servletNames ) ;
registration . addMappingForServletNames ( dispatcherTypes , this . matchAfter ,
registration . addMappingForServletNames ( dispatcherTypes , this . matchAfter ,
servletNames . toArray ( new String [ servletNames . size ( ) ] ) ) ;
servletNames . toArray ( new String [ servletNames . size ( ) ] ) ) ;
}
}
if ( this . urlPatterns . size( ) > 0 ) {
if ( ! this . urlPatterns . isEmpty( ) ) {
this . logger . info ( "Mapping filter: '" + registration . getName ( )
this . logger . info ( "Mapping filter: '" + registration . getName ( )
+ "' to urls: " + this . urlPatterns ) ;
+ "' to urls: " + this . urlPatterns ) ;
registration . addMappingForUrlPatterns ( dispatcherTypes , this . matchAfter ,
registration . addMappingForUrlPatterns ( dispatcherTypes , this . matchAfter ,