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 174c3ba CAMEL-17112: camel-core - The starting counter for thread
name should be 1
174c3ba is described below
commit 174c3ba8dffee7b70c43d9bc3bd3c5266cfc0592
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Oct 20 17:03:06 2021 +0200
CAMEL-17112: camel-core - The starting counter for thread name should be 1
---
.../src/main/java/org/apache/camel/util/concurrent/ThreadHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/camel-util/src/main/java/org/apache/camel/util/concurrent/ThreadHelper.java
b/core/camel-util/src/main/java/org/apache/camel/util/concurrent/ThreadHelper.java
index 068916f..8254575 100644
---
a/core/camel-util/src/main/java/org/apache/camel/util/concurrent/ThreadHelper.java
+++
b/core/camel-util/src/main/java/org/apache/camel/util/concurrent/ThreadHelper.java
@@ -34,7 +34,7 @@ public final class ThreadHelper {
}
private static long nextThreadCounter() {
- return threadCounter.getAndIncrement();
+ return threadCounter.incrementAndGet();
}
/**