Skip to content

Commit 154d38d

Browse files
author
João Dias
committed
[517] Kotlin Coroutines support fixed
1 parent c924084 commit 154d38d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/AbstractRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ public Operation build(HandlerMethod handlerMethod, RequestMethod requestMethod,
160160
// requests
161161
String[] pNames = this.localSpringDocParameterNameDiscoverer.getParameterNames(handlerMethod.getMethod());
162162
MethodParameter[] parameters = handlerMethod.getMethodParameters();
163-
String[] reflectionParametersNames = Arrays.stream(parameters).map(MethodParameter::getParameterName).toArray(String[]::new);
164-
if (pNames == null)
163+
String[] reflectionParametersNames = Arrays.stream(handlerMethod.getMethod().getParameters()).map(java.lang.reflect.Parameter::getName).toArray(String[]::new);
164+
if (pNames == null || Arrays.stream(pNames).anyMatch(Objects::isNull))
165165
pNames = reflectionParametersNames;
166166
parameters = DelegatingMethodParameter.customize(pNames, parameters);
167167
RequestBodyInfo requestBodyInfo = new RequestBodyInfo();

0 commit comments

Comments
 (0)