You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2020/04/06 19:39:35 UTC
[camel] branch master updated: Revert "Switch to faster
String#indexOf method taking a char parameter." for
camel-salesforce-component SubscriptionHelper.
This is an automated email from the ASF dual-hosted git repository.
pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 4869332 Revert "Switch to faster String#indexOf method taking a char parameter." for camel-salesforce-component SubscriptionHelper.
4869332 is described below
commit 4869332c7ad5cc9cc854abc8b3d7cc6a02b0bc9b
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Mon Apr 6 21:38:08 2020 +0200
Revert "Switch to faster String#indexOf method taking a char parameter." for camel-salesforce-component SubscriptionHelper.
---
.../component/salesforce/internal/streaming/SubscriptionHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java
index 8bb3c20..3960ef1 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java
@@ -526,7 +526,7 @@ public class SubscriptionHelper extends ServiceSupport {
channelName.append(topicName);
}
- final int typeIdx = channelName.indexOf('/', 1);
+ final int typeIdx = channelName.indexOf("/", 1);
if ("event".equals(channelName.substring(1, typeIdx)) && !topicName.endsWith("__e")) {
channelName.append("__e");
}