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 2017/12/17 18:36:05 UTC

[camel] 02/03: Fixed CS. This closes #2151

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

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

commit 7de19865bb84346becbe05fc8a0988e5e1efbf79
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Dec 17 19:22:45 2017 +0100

    Fixed CS. This closes #2151
---
 .../camel/zipkin/ZipkinLegacyReporterAdapter.java  | 33 +++++++++++-----------
 .../camel/zipkin/scribe/ZipkinTwoRouteScribe.java  |  2 +-
 2 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinLegacyReporterAdapter.java b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinLegacyReporterAdapter.java
index 9df176f..c5ebcdb 100644
--- a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinLegacyReporterAdapter.java
+++ b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinLegacyReporterAdapter.java
@@ -24,24 +24,25 @@ import zipkin2.reporter.Reporter;
 
 final class ZipkinLegacyReporterAdapter implements SpanCollector, Reporter<zipkin2.Span> {
 
-  final SpanCollector delegate;
+    final SpanCollector delegate;
 
-  ZipkinLegacyReporterAdapter(SpanCollector delegate) {
-    this.delegate = delegate;
-  }
+    ZipkinLegacyReporterAdapter(SpanCollector delegate) {
+        this.delegate = delegate;
+    }
 
-  @Override public void report(zipkin2.Span span) {
-    collect(DefaultSpanCodec.fromZipkin(V2SpanConverter.toSpan(span)));
-  }
+    @Override
+    public void report(zipkin2.Span span) {
+        collect(DefaultSpanCodec.fromZipkin(V2SpanConverter.toSpan(span)));
+    }
 
-  @Override
-  public void collect(Span span) {
-    delegate.collect(span);
-  }
+    @Override
+    public void collect(Span span) {
+        delegate.collect(span);
+    }
 
-  @Deprecated
-  @Override
-  public void addDefaultAnnotation(String key, String value) {
-    delegate.addDefaultAnnotation(key, value);
-  }
+    @Deprecated
+    @Override
+    public void addDefaultAnnotation(String key, String value) {
+        delegate.addDefaultAnnotation(key, value);
+    }
 }
diff --git a/components/camel-zipkin/src/test/java/org/apache/camel/zipkin/scribe/ZipkinTwoRouteScribe.java b/components/camel-zipkin/src/test/java/org/apache/camel/zipkin/scribe/ZipkinTwoRouteScribe.java
index 72fd92d..bf6187e 100644
--- a/components/camel-zipkin/src/test/java/org/apache/camel/zipkin/scribe/ZipkinTwoRouteScribe.java
+++ b/components/camel-zipkin/src/test/java/org/apache/camel/zipkin/scribe/ZipkinTwoRouteScribe.java
@@ -17,8 +17,8 @@
 package org.apache.camel.zipkin.scribe;
 
 import com.github.kristofa.brave.scribe.ScribeSpanCollector;
-import org.apache.camel.zipkin.ZipkinTwoRouteTest;
 import org.apache.camel.zipkin.ZipkinTracer;
+import org.apache.camel.zipkin.ZipkinTwoRouteTest;
 
 /**
  * Integration test requires running Zipkin/Scribe running

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.