This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push: new 1a381cc0afa Fix compile due to recent api change 1a381cc0afa is described below commit 1a381cc0afa3ed27ffdd6f4becae519a11c41f2c Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Feb 29 19:38:20 2024 +0100 Fix compile due to recent api change --- .../apache/camel/spring/boot/actuate/info/CamelInfoContributor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/info/CamelInfoContributor.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/info/CamelInfoContributor.java index 9662c3a3c39..6b8dd212829 100644 --- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/info/CamelInfoContributor.java +++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/info/CamelInfoContributor.java @@ -17,6 +17,7 @@ package org.apache.camel.spring.boot.actuate.info; import org.apache.camel.CamelContext; +import org.apache.camel.support.CamelContextHelper; import org.springframework.boot.actuate.info.Info; import org.springframework.boot.actuate.info.InfoContributor; @@ -37,8 +38,8 @@ public class CamelInfoContributor implements InfoContributor { builder.withDetail("camel.name", camelContext.getName()); builder.withDetail("camel.version", camelContext.getVersion()); if (camelContext.getUptime() != null) { - builder.withDetail("camel.uptime", camelContext.getUptime()); - builder.withDetail("camel.uptimeMillis", camelContext.getUptimeMillis()); + builder.withDetail("camel.uptime", CamelContextHelper.getUptime(camelContext)); + builder.withDetail("camel.uptimeMillis", CamelContextHelper.getUptimeMillis(camelContext)); } builder.withDetail("camel.status", camelContext.getStatus().name()); }