You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/06/06 05:34:43 UTC
[camel] branch main updated: Fixed CS
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 6729c98 Fixed CS
6729c98 is described below
commit 6729c98f450a85c45aa5a4cb8631e920b597dbcb
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Jun 6 07:33:55 2021 +0200
Fixed CS
---
.../generator/openapi/SpringBootProjectSourceCodeGenerator.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/SpringBootProjectSourceCodeGenerator.java b/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/SpringBootProjectSourceCodeGenerator.java
index 91718c5..aa1159f 100644
--- a/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/SpringBootProjectSourceCodeGenerator.java
+++ b/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/SpringBootProjectSourceCodeGenerator.java
@@ -62,15 +62,16 @@ public class SpringBootProjectSourceCodeGenerator {
}
public SpringBootProjectSourceCodeGenerator withMappingValues(final String... mappingValues) {
- if (!ArrayUtils.isEmpty(mappingValues))
+ if (!ArrayUtils.isEmpty(mappingValues)) {
this.mappingValues = mappingValues;
-
+ }
return this;
}
String genereateMappingValues() {
- if (ArrayUtils.isEmpty(mappingValues))
+ if (ArrayUtils.isEmpty(mappingValues)) {
return StringUtils.wrap("/**", '"');
+ }
StringBuilder sb = new StringBuilder("{");
Arrays.stream(mappingValues)