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 7d1fd2e9e89a01f24f722e5f6ce47e1e07bfcb25 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Sat May 11 12:26:11 2019 +0200 Fixed CS for Camel-example-cdi-metrics --- .../java/org/apache/camel/example/cdi/metrics/UnreliableService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/camel-example-cdi-metrics/src/main/java/org/apache/camel/example/cdi/metrics/UnreliableService.java b/examples/camel-example-cdi-metrics/src/main/java/org/apache/camel/example/cdi/metrics/UnreliableService.java index 2441ffd..17387ea 100644 --- a/examples/camel-example-cdi-metrics/src/main/java/org/apache/camel/example/cdi/metrics/UnreliableService.java +++ b/examples/camel-example-cdi-metrics/src/main/java/org/apache/camel/example/cdi/metrics/UnreliableService.java @@ -16,19 +16,20 @@ */ package org.apache.camel.example.cdi.metrics; +import java.util.Random; + import javax.enterprise.context.ApplicationScoped; import com.codahale.metrics.annotation.Metered; import org.apache.camel.Exchange; import org.apache.camel.RuntimeExchangeException; -import java.util.Random; @ApplicationScoped public class UnreliableService { @Metered public void attempt(Exchange exchange) { - Random rand = new Random(); + Random rand = new Random(); if (rand.nextDouble() < 0.5) { throw new RuntimeExchangeException("Random failure", exchange); }