You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2021/04/13 15:27:43 UTC

[camel-k-runtime] 04/05: chore(core): checkstyle fixes

This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit 5909f6dc95ad7499b07a969af01aefbba3200e81
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Tue Apr 13 14:47:49 2021 +0200

    chore(core): checkstyle fixes
---
 .../src/main/java/org/apache/camel/k/listener/SourcesConfigurer.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/camel-k-core/support/src/main/java/org/apache/camel/k/listener/SourcesConfigurer.java b/camel-k-core/support/src/main/java/org/apache/camel/k/listener/SourcesConfigurer.java
index 4360ed2..db0fb24 100644
--- a/camel-k-core/support/src/main/java/org/apache/camel/k/listener/SourcesConfigurer.java
+++ b/camel-k-core/support/src/main/java/org/apache/camel/k/listener/SourcesConfigurer.java
@@ -26,7 +26,6 @@ import org.apache.camel.spi.Configurer;
 import org.apache.camel.util.ObjectHelper;
 
 import java.util.Arrays;
-import java.util.Collections;
 
 @Configurer
 public class SourcesConfigurer extends AbstractPhaseListener {
@@ -107,7 +106,9 @@ public class SourcesConfigurer extends AbstractPhaseListener {
                         return SourceType.source.compareTo(b.getType());
                     } else if (b.getType() == null) {
                         return a.getType().compareTo(SourceType.source);
-                    } else return a.getType().compareTo(b.getType());
+                    } else {
+                        return a.getType().compareTo(b.getType());
+                    }
                 });
     }