</BUG>
throw new IllegalArgumentException(format("%s constructor parameters don't have @ApiParam annotation.",
type.getSimpleName()));
}
<BUG>Model model = swagger.getDefinitions().get(type.getSimpleName());
if(model != null && !type.getName().equals(model.getReference())) {
LOGGER.error(String.format("Error while reading field of bean %s. The bean doesn't have Swagger definition", type.getName()));
return new java.lang.reflect.Parameter[0];</BUG>
}
return parameters;

if (constructors.isEmpty()) {
throw new IllegalArgumentException(format("%s doesn't have any constructor annotation with @JsonCreator.",
type.getSimpleName()));
}
java.lang.reflect.Parameter[] parameters = constructors.get(0).getParameters();
if (parameters.length > 0 && !parameters[0].isAnnotationPresent(ApiParam.class)) {
throw new IllegalArgumentException(format("%s constructor parameters don't have @ApiParam annotation.",
type.getSimpleName()));
}
Model model = swagger.getDefinitions().get(type.getSimpleName());
if (model == null) {
modelConverters.read(type).forEach(swagger::addDefinition);
}
return parameters;
