From 8da0242007dd61d8745425f725a678089c2f8ac0 Mon Sep 17 00:00:00 2001 From: bnasslahsen Date: Tue, 5 May 2020 21:07:14 +0200 Subject: [PATCH] code review --- .../springdoc/core/converters/ModelConverterRegistrar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/springdoc-openapi-common/src/main/java/org/springdoc/core/converters/ModelConverterRegistrar.java b/springdoc-openapi-common/src/main/java/org/springdoc/core/converters/ModelConverterRegistrar.java index 6cf3ef69e..3d39ec7d6 100644 --- a/springdoc-openapi-common/src/main/java/org/springdoc/core/converters/ModelConverterRegistrar.java +++ b/springdoc-openapi-common/src/main/java/org/springdoc/core/converters/ModelConverterRegistrar.java @@ -59,9 +59,9 @@ private Optional getRegisteredConverterSameAs(ModelConverter mod .findFirst(); } catch (IllegalAccessException exception) { - LOGGER.error(exception.getMessage(), exception); - throw new RuntimeException(exception); + LOGGER.warn(exception.getMessage()); } + return Optional.empty(); } private boolean isSameConverter(ModelConverter modelConverter1, ModelConverter modelConverter2) {