diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java index 7df7dd8aa886..6e82483b22a3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java @@ -154,8 +154,8 @@ public void setUrlPatterns(Collection urlPatterns) { } /** - * 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() { @@ -163,7 +163,8 @@ public Collection getUrlPatterns() { } /** - * 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-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java index 6b17e066d052..703240691454 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java @@ -129,7 +129,8 @@ public void setUrlMappings(Collection urlMappings) { } /** - * 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() { @@ -137,7 +138,7 @@ public Collection getUrlMappings() { } /** - * 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) */