zbendhiba commented on a change in pull request #4085:
URL: https://github.com/apache/camel/pull/4085#discussion_r469113053



##########
File path: 
components/camel-openapi-java/src/main/java/org/apache/camel/openapi/OpenApiRestProducerFactory.java
##########
@@ -176,13 +176,13 @@ private Producer createHttpProducer(CamelContext 
camelContext, OasDocument openA
                 }
                 if (list != null) {
                     for (String s : list) {
-                        csb.append(s);
+                        producesBuilder.add(s);
                     }
                 }
-                produces = csb.isEmpty() ? null : csb.toString();
+                produces = producesBuilder.toString().isEmpty() ? null : 
producesBuilder.toString();

Review comment:
       The length is 0 by the way, the delimiter is not added. If the value is 
null, the length gets prefix + suffix, which in this case is empty.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to