camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/6] camel git commit: Polished. This fixes #1741.
Date Tue, 06 Jun 2017 14:59:17 GMT
Polished. This fixes #1741.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6d5ce82b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6d5ce82b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6d5ce82b

Branch: refs/heads/master
Commit: 6d5ce82be9cba60debdb3c4008baf51d8e475630
Parents: 5609fae
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Jun 6 16:57:23 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Jun 6 16:57:23 2017 +0200

----------------------------------------------------------------------
 .../camel/component/metrics/routepolicy/MetricsRoutePolicy.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6d5ce82b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicy.java
----------------------------------------------------------------------
diff --git a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicy.java
b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicy.java
index 7eaa655..ef90bf9 100644
--- a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicy.java
+++ b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicy.java
@@ -17,6 +17,7 @@
 package org.apache.camel.component.metrics.routepolicy;
 
 import java.util.concurrent.TimeUnit;
+import java.util.regex.Matcher;
 
 import com.codahale.metrics.MetricRegistry;
 import com.codahale.metrics.Timer;
@@ -171,7 +172,7 @@ public class MetricsRoutePolicy extends RoutePolicySupport implements
NonManaged
 
         String answer = namePattern;
         answer = answer.replaceFirst("##name##", name);
-        answer = answer.replaceFirst("##routeId##", java.util.regex.Matcher.quoteReplacement(route.getId()));
+        answer = answer.replaceFirst("##routeId##", Matcher.quoteReplacement(route.getId()));
         answer = answer.replaceFirst("##type##", type);
         return answer;
     }


Mime
View raw message