From 28fe826e3b6495475eaf1c2c27f6b15d2c1f58e4 Mon Sep 17 00:00:00 2001 From: slavisa-baeldung Date: Sun, 5 Mar 2017 07:29:47 +0100 Subject: [PATCH] BAEL-574 - Removing redundant pattern check --- .../cloud/bootstrap/svcbook/BookServiceApplication.java | 1 - .../spring/cloud/bootstrap/zipkin/ZipkinApplication.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-cloud/spring-cloud-bootstrap/svc-book/src/main/java/com/baeldung/spring/cloud/bootstrap/svcbook/BookServiceApplication.java b/spring-cloud/spring-cloud-bootstrap/svc-book/src/main/java/com/baeldung/spring/cloud/bootstrap/svcbook/BookServiceApplication.java index 63ff0fb134..3d55a59dbc 100644 --- a/spring-cloud/spring-cloud-bootstrap/svc-book/src/main/java/com/baeldung/spring/cloud/bootstrap/svcbook/BookServiceApplication.java +++ b/spring-cloud/spring-cloud-bootstrap/svc-book/src/main/java/com/baeldung/spring/cloud/bootstrap/svcbook/BookServiceApplication.java @@ -45,7 +45,6 @@ public class BookServiceApplication { delegate = new HttpZipkinSpanReporter(baseUrl, zipkinProperties.getFlushInterval(), zipkinProperties.getCompression().isEnabled(), spanMetricReporter); if (!span.name.matches(skipPattern)) delegate.report(span); } - if (!span.name.matches(skipPattern)) delegate.report(span); } }; } diff --git a/spring-cloud/spring-cloud-bootstrap/zipkin/src/main/java/com/baeldung/spring/cloud/bootstrap/zipkin/ZipkinApplication.java b/spring-cloud/spring-cloud-bootstrap/zipkin/src/main/java/com/baeldung/spring/cloud/bootstrap/zipkin/ZipkinApplication.java index bb1355e258..d757567156 100644 --- a/spring-cloud/spring-cloud-bootstrap/zipkin/src/main/java/com/baeldung/spring/cloud/bootstrap/zipkin/ZipkinApplication.java +++ b/spring-cloud/spring-cloud-bootstrap/zipkin/src/main/java/com/baeldung/spring/cloud/bootstrap/zipkin/ZipkinApplication.java @@ -10,6 +10,6 @@ import zipkin.server.EnableZipkinServer; @EnableZipkinServer public class ZipkinApplication { public static void main(String[] args) { - SpringApplication.run(ZipkinApplication.class, args); - } + SpringApplication.run(ZipkinApplication.class, args); + } }