This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c46cbcc6bee94ec631e7898b0c944cae98b4a071
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 8 12:49:57 2022 +0100

    CAMEL-18696: camel-ldap - Make filter a bit easier to use (#8687)
---
 .../org/apache/camel/component/ldap/LdapProducer.java   | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git 
a/components/camel-ldap/src/main/java/org/apache/camel/component/ldap/LdapProducer.java
 
b/components/camel-ldap/src/main/java/org/apache/camel/component/ldap/LdapProducer.java
index f7dfd90a726..d6384c0b6bb 100644
--- 
a/components/camel-ldap/src/main/java/org/apache/camel/component/ldap/LdapProducer.java
+++ 
b/components/camel-ldap/src/main/java/org/apache/camel/component/ldap/LdapProducer.java
@@ -175,20 +175,13 @@ public class LdapProducer extends DefaultProducer {
     }
 
     /**
-     * Given an LDAP search string, returns the string with certain characters
-     * escaped according to RFC 2254 guidelines.
+     * Given an LDAP search string, returns the string with certain characters 
escaped according to RFC 2254 guidelines.
      *
-     * The character mapping is as follows:
-     *     char -&gt;  Replacement
-     *    ---------------------------
-     *     *  -&gt; \2a
-     *     (  -&gt; \28
-     *     )  -&gt; \29
-     *     \  -&gt; \5c
-     *     \0 -&gt; \00
+     * The character mapping is as follows: char -&gt; Replacement 
--------------------------- * -&gt; \2a ( -&gt; \28 )
+     * -&gt; \29 \ -&gt; \5c \0 -&gt; \00
      *
-     * @param filter string to escape according to RFC 2254 guidelines
-     * @return String the escaped/encoded result
+     * @param  filter string to escape according to RFC 2254 guidelines
+     * @return        String the escaped/encoded result
      */
     private String escapeFilter(String filter) {
         if (filter == null) {

Reply via email to