Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Apr 5, 2020
1 parent 89e80e4 commit edbf3f1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ public class RequestTypeToIgnoreConverter implements ModelConverter {
public Schema resolve(AnnotatedType type, ModelConverterContext context, Iterator<ModelConverter> chain) {
if (type.isSchemaProperty()) {
JavaType javaType = Json.mapper().constructType(type.getType());
if (type != null) {
Class<?> cls = javaType.getRawClass();
if(AbstractRequestBuilder.isRequestTypeToIgnore(cls))
return null;
}
Class<?> cls = javaType.getRawClass();
if (AbstractRequestBuilder.isRequestTypeToIgnore(cls))
return null;
}
return (chain.hasNext()) ? chain.next().resolve(type, context, chain) : null;
}
Expand Down

0 comments on commit edbf3f1

Please sign in to comment.