This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 413d59ab1278b1b8ae00ef16a2fc4f9088718327 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jan 18 07:41:24 2022 +0100 Camel-Facebook: Use String.indexOf(String) instead of String.indexOf(char) --- .../main/java/org/apache/camel/component/facebook/FacebookConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/FacebookConsumer.java b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/FacebookConsumer.java index f14f873..e675606 100644 --- a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/FacebookConsumer.java +++ b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/FacebookConsumer.java @@ -86,7 +86,7 @@ public class FacebookConsumer extends ScheduledPollConsumer { if (queryString.contains(SINCE_PREFIX)) { // use the user supplied value to start with final int startIndex = queryString.indexOf(SINCE_PREFIX) + SINCE_PREFIX.length(); - int endIndex = queryString.indexOf('&', startIndex); + int endIndex = queryString.indexOf("&", startIndex); if (endIndex == -1) { // ignore the closing square bracket endIndex = queryString.length() - 1;