cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject cxf git commit: Fix compile failure
Date Fri, 09 Dec 2016 19:27:20 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes f62e5dd8e -> 4e1c3dd44


Fix compile failure


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/4e1c3dd4
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4e1c3dd4
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4e1c3dd4

Branch: refs/heads/3.1.x-fixes
Commit: 4e1c3dd44a00d2dfeddceb26b5600609ec1ac0e7
Parents: f62e5dd
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri Dec 9 14:26:58 2016 -0500
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Dec 9 14:26:58 2016 -0500

----------------------------------------------------------------------
 .../src/main/java/sample/rs/service/SampleRestApplication.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/4e1c3dd4/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java
b/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java
index 35bf34a..b929db5 100644
--- a/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java
+++ b/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java
@@ -24,6 +24,7 @@ import com.codahale.metrics.MetricRegistry;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics;
 import org.springframework.boot.actuate.endpoint.MetricsEndpoint;
+import org.springframework.boot.actuate.endpoint.PublicMetrics;
 import org.springframework.boot.actuate.metrics.reader.MetricRegistryMetricReader;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@@ -40,8 +41,8 @@ public class SampleRestApplication {
     
     @Bean
     public MetricsEndpoint metricsEndpoint(final MetricRegistry registry) {
-        return new MetricsEndpoint(Collections.singleton(new MetricReaderPublicMetrics(
-            new MetricRegistryMetricReader(registry))));
+        PublicMetrics pm = new MetricReaderPublicMetrics(new MetricRegistryMetricReader(registry));
+        return new MetricsEndpoint(Collections.singleton(pm));
     }
 
     public static void main(String[] args) {


Mime
View raw message