Restrict visibility of internal MethodParameterFactory

Issue: SPR-14055
This commit is contained in:
Sam Brannen 2016-07-05 15:20:01 +02:00
parent 0da93ad219
commit 5f53a60120
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ import org.springframework.util.Assert;
* @see #createMethodParameter(Parameter)
* @see #createSynthesizingMethodParameter(Parameter)
*/
public abstract class MethodParameterFactory {
abstract class MethodParameterFactory {
private MethodParameterFactory() {
/* no-op */
@ -51,7 +51,7 @@ public abstract class MethodParameterFactory {
* @return a new {@code MethodParameter}
* @see #createSynthesizingMethodParameter(Parameter)
*/
public static MethodParameter createMethodParameter(Parameter parameter) {
static MethodParameter createMethodParameter(Parameter parameter) {
Assert.notNull(parameter, "Parameter must not be null");
Executable executable = parameter.getDeclaringExecutable();
if (executable instanceof Method) {
@ -71,7 +71,7 @@ public abstract class MethodParameterFactory {
* in a constructor
* @see #createMethodParameter(Parameter)
*/
public static SynthesizingMethodParameter createSynthesizingMethodParameter(Parameter parameter) {
static SynthesizingMethodParameter createSynthesizingMethodParameter(Parameter parameter) {
Assert.notNull(parameter, "Parameter must not be null");
Executable executable = parameter.getDeclaringExecutable();
if (executable instanceof Method) {