File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/doc Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins
3838 ([ JENKINS-43693] ( https://issues.jenkins-ci.org/browse/JENKINS-43693 ) )
3939 * Enhanced support for the [ Branch API Plugin] ( https://plugins.jenkins.io/branch-api )
4040 ([ JENKINS-54877] ( https://issues.jenkins-ci.org/browse/JENKINS-54877 ) )
41+ * Fixed problem with API viewer
42+ ([ JENKINS-51202] ( https://issues.jenkins-ci.org/browse/JENKINS-51202 ) )
4143 * Fixed [[ Dynamic DSL]] problem
4244 ([ JENKINS-57817] ( https://issues.jenkins-ci.org/browse/JENKINS-57817 ) )
4345* 1.74 (May 01 2019)
Original file line number Diff line number Diff line change @@ -24,6 +24,16 @@ class GroovyDocHelper {
2424 Method method = clazz. methods. findAll { it. name == methodDoc. name() }. find { Method method ->
2525 List docParamNames = methodDoc. parameters(). collect {
2626 String name = it. type()?. qualifiedTypeName() ?: it. typeName()
27+ if (name. contains(' <' )) {
28+ name = name[0 .. (name. indexOf(' <' ) - 1 )]
29+ if (name in [' Map' , ' List' ]) {
30+ name = ' java.util.' + name
31+ } else if (name in [' Iterable' ]) {
32+ name = ' java.lang.' + name
33+ } else {
34+ throw new UnsupportedOperationException (name)
35+ }
36+ }
2737 if (name. startsWith(' .' )) {
2838 name = name[1 .. -1 ]
2939 }
You can’t perform that action at this time.
0 commit comments