You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/09/28 13:47:06 UTC

[camel] 01/02: Camel-Zipkin: Fixed CS

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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a4c6ed0a5df0abe732ff079102781cea0422352d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sat Sep 28 15:42:50 2019 +0200

    Camel-Zipkin: Fixed CS
---
 .../src/main/java/org/apache/camel/zipkin/ServiceHostFunction.java   | 5 ++++-
 .../src/main/java/org/apache/camel/zipkin/ServicePortFunction.java   | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServiceHostFunction.java b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServiceHostFunction.java
index ee71221..8190ca9 100644
--- a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServiceHostFunction.java
+++ b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServiceHostFunction.java
@@ -33,10 +33,13 @@ import org.apache.camel.util.StringHelper;
  * <p/>
  * This implementation is to return the host part only.
  */
-public class ServiceHostFunction {
+public final class ServiceHostFunction {
 
     private static final String HOST_PREFIX = "_SERVICE_HOST";
 
+    private ServiceHostFunction() {
+    }
+
     public static String apply(String remainder) {
         String key = remainder;
         String defaultValue = null;
diff --git a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServicePortFunction.java b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServicePortFunction.java
index 65ada3f..c17da85 100644
--- a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServicePortFunction.java
+++ b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ServicePortFunction.java
@@ -33,10 +33,13 @@ import org.apache.camel.util.StringHelper;
  * <p/>
  * This implementation is to return the port part only.
  */
-public class ServicePortFunction {
+public final class ServicePortFunction {
 
     private static final String PORT_PREFIX = "_SERVICE_PORT";
 
+    private ServicePortFunction() {
+    }
+
     public static String apply(String remainder) {
         String key = remainder;
         String defaultValue = null;