Restrict visibility of internal MethodParameterFactory

Issue: SPR-14055
master
Sam Brannen 8 years ago
parent 0da93ad219
commit 5f53a60120
  1. 6
      spring-test/src/main/java/org/springframework/test/context/junit/jupiter/support/MethodParameterFactory.java

@ -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) {

Loading…
Cancel
Save