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/12 15:35:19 UTC

(camel) branch main updated: CAMEL-20224: remove milliseconds-based input from StopWatch (#12424)

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 b720f8d8ad4 CAMEL-20224: remove milliseconds-based input from StopWatch (#12424)
b720f8d8ad4 is described below

commit b720f8d8ad4a187a0ac32a6de4f73cd556999569
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Tue Dec 12 12:35:12 2023 -0300

    CAMEL-20224: remove milliseconds-based input from StopWatch (#12424)
    
    * CAMEL-20224: remove milliseconds-based input from StopWatch
    
    * CAMEL-20224: added notes about the removal on the migration guide
---
 .../src/main/java/org/apache/camel/util/StopWatch.java       |  8 --------
 .../modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc       | 12 ++++++++++++
 2 files changed, 12 insertions(+), 8 deletions(-)

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 b6280f58618..a4b3945f61a 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
@@ -34,14 +34,6 @@ public final class StopWatch {
         this.start = System.nanoTime();
     }
 
-    /**
-     * Starts the stop watch from the given timestamp
-     */
-    @Deprecated
-    public StopWatch(long timeMillis) {
-        start = Duration.ofMillis(timeMillis).toNanos();
-    }
-
     /**
      * Creates the stop watch
      *
diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc
new file mode 100644
index 00000000000..2e53cdc5e7f
--- /dev/null
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc
@@ -0,0 +1,12 @@
+= Apache Camel 4.x Upgrade Guide
+
+This document is for helping you upgrade your Apache Camel application
+from Camel 4.x to 4.y. For example, if you are upgrading Camel 4.0 to 4.2, then you should follow the guides
+from both 4.0 to 4.1 and 4.1 to 4.2.
+
+== Upgrading Camel 4.3 to 4.4
+
+=== camel-core
+
+Removed the deprecated constructor from the internal class `org.apache.camel.util.StopWatch`. Users of this class are advised to
+use the default constructor if necessary.
\ No newline at end of file