Browse Source

Polish "Add missing Javadoc since in AbstractUrlHandlerMapping"

See gh-33247
pull/33250/head
Stéphane Nicoll 1 year ago
parent
commit
d5abc071f1
  1. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractUrlHandlerMapping.java

2
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractUrlHandlerMapping.java

@ -143,6 +143,7 @@ public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping i
* @param beanName the name of the handler bean * @param beanName the name of the handler bean
* @throws BeansException if the handler couldn't be registered * @throws BeansException if the handler couldn't be registered
* @throws IllegalStateException if there is a conflicting handler registered * @throws IllegalStateException if there is a conflicting handler registered
* @since 6.2
*/ */
public void registerHandler(String[] urlPaths, String beanName) throws BeansException, IllegalStateException { public void registerHandler(String[] urlPaths, String beanName) throws BeansException, IllegalStateException {
Assert.notNull(urlPaths, "URL path array must not be null"); Assert.notNull(urlPaths, "URL path array must not be null");
@ -158,6 +159,7 @@ public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping i
* (a bean name will automatically be resolved into the corresponding handler bean) * (a bean name will automatically be resolved into the corresponding handler bean)
* @throws BeansException if the handler couldn't be registered * @throws BeansException if the handler couldn't be registered
* @throws IllegalStateException if there is a conflicting handler registered * @throws IllegalStateException if there is a conflicting handler registered
* @since 6.2
*/ */
public void registerHandler(String urlPath, Object handler) throws BeansException, IllegalStateException { public void registerHandler(String urlPath, Object handler) throws BeansException, IllegalStateException {
Assert.notNull(urlPath, "URL path must not be null"); Assert.notNull(urlPath, "URL path must not be null");

Loading…
Cancel
Save