You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/10/24 23:46:11 UTC

[camel-quarkus] 03/07: chore: fix unchecked cast warning

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

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

commit 80d34206e64dfa9d3390c14c06c9d3aeb04a8b2d
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Thu Oct 24 19:45:56 2019 +0200

    chore: fix unchecked cast warning
---
 .../microprofile/metrics/runtime/CamelMicroProfileMetricsRecorder.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extensions/microprofile-metrics/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/metrics/runtime/CamelMicroProfileMetricsRecorder.java b/extensions/microprofile-metrics/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/metrics/runtime/CamelMicroProfileMetricsRecorder.java
index 314d5f3..6d19cf0 100644
--- a/extensions/microprofile-metrics/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/metrics/runtime/CamelMicroProfileMetricsRecorder.java
+++ b/extensions/microprofile-metrics/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/metrics/runtime/CamelMicroProfileMetricsRecorder.java
@@ -34,7 +34,7 @@ import org.eclipse.microprofile.metrics.MetricRegistry;
 public class CamelMicroProfileMetricsRecorder {
 
     public RuntimeValue<MetricRegistry> createApplicationRegistry() {
-        return new RuntimeValue(MetricRegistries.get(MetricRegistry.Type.APPLICATION));
+        return new RuntimeValue<>(MetricRegistries.get(MetricRegistry.Type.APPLICATION));
     }
 
     public void configureCamelContext(CamelMicroProfileMetricsConfig config, BeanContainer beanContainer) {