From e3270e5b24339edd39da08bd48485de08cd62ea2 Mon Sep 17 00:00:00 2001 From: Adrien Lecharpentier Date: Wed, 11 Sep 2024 16:14:43 +0200 Subject: [PATCH] Removes deprecated usage of spring framework class --- .../javaposse/jobdsl/plugin/EmbeddedApiDocGenerator.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/EmbeddedApiDocGenerator.groovy b/job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/EmbeddedApiDocGenerator.groovy index fc4faa0d7..303af6cb4 100644 --- a/job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/EmbeddedApiDocGenerator.groovy +++ b/job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/EmbeddedApiDocGenerator.groovy @@ -16,8 +16,8 @@ import org.jenkinsci.plugins.structs.describable.EnumType import org.jenkinsci.plugins.structs.describable.HeterogeneousObjectType import org.jenkinsci.plugins.structs.describable.HomogeneousObjectType import org.jenkinsci.plugins.structs.describable.ParameterType -import org.springframework.core.LocalVariableTableParameterNameDiscoverer import org.springframework.core.ParameterNameDiscoverer +import org.springframework.core.StandardReflectionParameterNameDiscoverer import java.lang.reflect.Method import java.text.BreakIterator @@ -33,7 +33,7 @@ import static org.apache.commons.lang.StringEscapeUtils.unescapeHtml class EmbeddedApiDocGenerator { private static final ParameterNameDiscoverer PARAMETER_NAME_DISCOVERER = - new LocalVariableTableParameterNameDiscoverer() + new StandardReflectionParameterNameDiscoverer() private final List newContexts = [] private final List newListContexts = []