Skip to content

Commit bfef8bb

Browse files
author
bnasslahsen
committed
Changes report: Fixes #1696
1 parent f0abf2c commit bfef8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/parsers/ReturnTypeParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static void findTypeForGenerics(Class<?>[] generics, Type[] typeArguments, Resol
153153
*/
154154
static ResolvableType resolveVariable(TypeVariable<?> typeVariable, ResolvableType contextType) {
155155
ResolvableType resolvedType;
156-
if (contextType.hasGenerics() && contextType.getRawClass().equals(typeVariable.getGenericDeclaration())) {
156+
if (contextType.hasGenerics() && Objects.equals(contextType.getRawClass(), typeVariable.getGenericDeclaration())) {
157157
resolvedType = ResolvableType.forType(typeVariable, contextType);
158158
if (resolvedType.resolve() != null) {
159159
return resolvedType;

0 commit comments

Comments
 (0)