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 e6fd5084f01 removed unread local StringBuilder instance (#9807)
e6fd5084f01 is described below
commit e6fd5084f011a868c4ed4b55221f72a1858fb0c3
Author: dk2k <[email protected]>
AuthorDate: Tue Apr 4 19:46:37 2023 +0300
removed unread local StringBuilder instance (#9807)
Co-authored-by: dk2k <[email protected]>
---
.../component/zookeeper/operations/FutureEventDrivenOperation.java | 7 -------
1 file changed, 7 deletions(-)
diff --git
a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java
b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java
index 4021387f731..7811a039402 100644
---
a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java
+++
b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java
@@ -64,13 +64,6 @@ public abstract class FutureEventDrivenOperation<ResultType>
extends ZooKeeperOp
if (LOG.isTraceEnabled() && waitForAnyWatchedType.getCount() > 0) {
- StringBuilder b = new StringBuilder();
- for (EventType type : awaitedTypes) {
- b.append(type).append(", ");
- }
- if (b.length() > 0) {
- b.setLength(b.length() - 2);
- }
LOG.trace(String.format("Received event of type %s did not match
any watched types %s", received,
Arrays.toString(awaitedTypes)));
}