You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/12/11 09:03:48 UTC
(camel) branch main updated: CAMEL-19734: camel-core: Deprecate unused StopWatch method.
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.git
The following commit(s) were added to refs/heads/main by this push:
new b712e07180a CAMEL-19734: camel-core: Deprecate unused StopWatch method.
b712e07180a is described below
commit b712e07180a2f91d60680a76dbac26616a304ec6
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Dec 11 10:03:39 2023 +0100
CAMEL-19734: camel-core: Deprecate unused StopWatch method.
---
core/camel-util/src/main/java/org/apache/camel/util/StopWatch.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/camel-util/src/main/java/org/apache/camel/util/StopWatch.java b/core/camel-util/src/main/java/org/apache/camel/util/StopWatch.java
index 891a86f029e..b6280f58618 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/StopWatch.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/StopWatch.java
@@ -37,8 +37,9 @@ public final class StopWatch {
/**
* Starts the stop watch from the given timestamp
*/
+ @Deprecated
public StopWatch(long timeMillis) {
- start = timeMillis;
+ start = Duration.ofMillis(timeMillis).toNanos();
}
/**