Skip to content

Commit 6d5380f

Browse files
author
bnasslahsen
committed
project update
1 parent 690e917 commit 6d5380f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,16 @@ private String evaluateResponseStatus(Method method, Class<?> beanType, boolean
348348
}
349349

350350
private boolean isVoid(Type returnType) {
351+
boolean result = false;
351352
if (Void.TYPE.equals(returnType))
352-
return true;
353-
if (returnType instanceof ParameterizedType) {
354-
Type[] types = ((ParameterizedType) returnType).getActualTypeArguments();
355-
if(types !=null)
353+
result = true;
354+
else if (returnType instanceof ParameterizedType) {
355+
Type[] types = ((ParameterizedType) returnType).getActualTypeArguments();
356+
if (types != null)
356357
return isVoid(types[0]);
357358
}
358359
if (Void.class.equals(returnType))
359-
return true;
360-
return false;
360+
result = true;
361+
return result;
361362
}
362363
}

springdoc-openapi-common/src/main/java/org/springdoc/core/converters/ConverterUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import org.springframework.http.ResponseEntity;
2828

2929
public class ConverterUtils {
30+
31+
private ConverterUtils() { }
3032

3133
private static final List<Class<?>> RESULT_WRAPPERS_TO_IGNORE = new ArrayList<>();
3234

0 commit comments

Comments
 (0)