File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/main/java/org/jenkinsci/plugins/workflow/cps Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 3333import java .io .Serializable ;
3434import java .util .Collections ;
3535import java .util .HashMap ;
36- import java .util .List ;
3736import java .util .Map ;
3837import org .jenkinsci .plugins .workflow .pickles .PickleFactory ;
3938
5655 Map <String ,Object > values = new HashMap <>();
5756 ParametersAction action = b .getAction (ParametersAction .class );
5857 if (action != null ) {
59- List <ParameterValue > parameterValues ;
60- try { // TODO 1.651.2+ remove reflection
61- parameterValues = (List <ParameterValue >) ParametersAction .class .getMethod ("getAllParameters" ).invoke (action );
62- } catch (NoSuchMethodException x ) {
63- parameterValues = action .getParameters ();
64- }
65- for (ParameterValue parameterValue : parameterValues ) {
58+ for (ParameterValue parameterValue : action .getAllParameters ()) {
6659 addValue (values , parameterValue );
6760 }
6861 }
You can’t perform that action at this time.
0 commit comments