diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java index 563e2468b9c..9abb58a96f4 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -157,8 +157,8 @@ abstract class AbstractFilterRegistrationBean extends RegistrationBean { } /** - * Return a mutable collection of URL patterns that the filter will be registered - * against. + * Return a mutable collection of URL patterns, as defined in the Servlet + * specification, that the filter will be registered against. * @return the URL patterns */ public Collection getUrlPatterns() { @@ -166,7 +166,8 @@ abstract class AbstractFilterRegistrationBean extends RegistrationBean { } /** - * Add URL patterns that the filter will be registered against. + * Add URL patterns, as defined in the Servlet specification, that the filter will be + * registered against. * @param urlPatterns the URL patterns */ public void addUrlPatterns(String... urlPatterns) { diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java index 4da9bcceeca..840d4e0ae21 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -128,7 +128,8 @@ public class ServletRegistrationBean extends RegistrationBean { } /** - * Return a mutable collection of the URL mappings for the servlet. + * Return a mutable collection of the URL mappings, as defined in the Servlet + * specification, for the servlet. * @return the urlMappings */ public Collection getUrlMappings() { @@ -136,7 +137,7 @@ public class ServletRegistrationBean extends RegistrationBean { } /** - * Add URL mappings for the servlet. + * Add URL mappings, as defined in the Servlet specification, for the servlet. * @param urlMappings the mappings to add * @see #setUrlMappings(Collection) */