Polishing contribution
Closes gh-27203
This commit is contained in:
@@ -105,12 +105,12 @@ public class HandlerMethod {
|
||||
this(bean, method, null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Variant of {@link #HandlerMethod(Object, Method)} that
|
||||
* also accepts a {@link MessageSource}.
|
||||
* also accepts a {@link MessageSource} for use from sub-classes.
|
||||
* @since 5.3.10
|
||||
*/
|
||||
public HandlerMethod(Object bean, Method method, @Nullable MessageSource messageSource) {
|
||||
protected HandlerMethod(Object bean, Method method, @Nullable MessageSource messageSource) {
|
||||
Assert.notNull(bean, "Bean is required");
|
||||
Assert.notNull(method, "Method is required");
|
||||
this.bean = bean;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 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.
|
||||
@@ -74,9 +74,10 @@ public class InvocableHandlerMethod extends HandlerMethod {
|
||||
|
||||
/**
|
||||
* Variant of {@link #InvocableHandlerMethod(Object, Method)} that
|
||||
* also accepts a {@link MessageSource}.
|
||||
* also accepts a {@link MessageSource}, for use in sub-classes.
|
||||
* @since 5.3.10
|
||||
*/
|
||||
public InvocableHandlerMethod(Object bean, Method method, @Nullable MessageSource messageSource) {
|
||||
protected InvocableHandlerMethod(Object bean, Method method, @Nullable MessageSource messageSource) {
|
||||
super(bean, method, messageSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user