Skip to content

Commit 25ed0da

Browse files
committed
code review
1 parent 382f009 commit 25ed0da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ static Stream<MethodParameter> extractFrom(Class<?> clazz) {
115115
*/
116116
private static Stream<MethodParameter> extractFrom(Class<?> clazz, String fieldNamePrefix) {
117117
return allFieldsOf(clazz).stream()
118+
.filter(field -> !field.getType().equals(clazz))
118119
.flatMap(f -> fromGetterOfField(clazz, f, fieldNamePrefix))
119120
.filter(Objects::nonNull);
120121
}

0 commit comments

Comments
 (0)