You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2019/10/30 12:14:55 UTC
[camel-k-runtime] 09/09: feat(quarkus): Fix CS
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git
commit a460fc8d5f6be0db419fb4607a9653af57a57686
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Wed Oct 30 11:40:08 2019 +0100
feat(quarkus): Fix CS
---
.../camel/k/tooling/maven/GenerateCatalogMojo.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java
index e536ba5..ad91b27 100644
--- a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java
+++ b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java
@@ -107,13 +107,13 @@ public class GenerateCatalogMojo extends AbstractMojo {
runtime = "";
}
switch (runtime) {
- case "quarkus":
- catalog.setRuntimeProvider(new org.apache.camel.catalog.quarkus.QuarkusRuntimeProvider());
- break;
- case "":
- break;
- default:
- throw new IllegalArgumentException("catalog.runtime parameter value [" + runtime + "] is not supported!");
+ case "quarkus":
+ catalog.setRuntimeProvider(new org.apache.camel.catalog.quarkus.QuarkusRuntimeProvider());
+ break;
+ case "":
+ break;
+ default:
+ throw new IllegalArgumentException("catalog.runtime parameter value [" + runtime + "] is not supported!");
}
try {
@@ -170,7 +170,7 @@ public class GenerateCatalogMojo extends AbstractMojo {
.putLabels("camel.apache.org/catalog.version", catalog.getCatalogVersion())
.putLabels("camel.apache.org/catalog.loader.version", catalog.getLoadedVersion())
.putLabels("camel.apache.org/runtime.version", getRuntimeVersion());
- if (runtime != "") {
+ if (!"".equals(runtime)) {
labels.putLabels("camel.apache.org/runtime.provider", runtime);
}