Skip to content

Commit 84247fc

Browse files
committed
Revert "Set containingClass at MethodParameter"
This reverts commit bb89c0e.
1 parent 73ea1bf commit 84247fc

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/MethodParameterPojoExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private static Stream<MethodParameter> fromSimpleClass(Class<?> paramClass, Fiel
174174
.filter(d -> d.getName().equals(field.getName()))
175175
.map(PropertyDescriptor::getReadMethod)
176176
.filter(Objects::nonNull)
177-
.map(method -> new MethodParameter(method, -1).withContainingClass(paramClass))
177+
.map(method -> new MethodParameter(method, -1))
178178
.map(param -> new DelegatingMethodParameter(param, fieldNamePrefix + field.getName(), finalFieldAnnotations, true, isNotRequired));
179179
}
180180
catch (IntrospectionException e) {
@@ -246,4 +246,4 @@ static void removeSimpleTypes(Class<?>... classes) {
246246
SIMPLE_TYPES.removeAll(Arrays.asList(classes));
247247
}
248248

249-
}
249+
}

0 commit comments

Comments
 (0)