You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2018/01/24 15:37:19 UTC

[directory-ldap-api] branch master updated: Fixed issue where Map key was using an AtomicInteger instead of the value it contain.

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

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 2301e10  Fixed issue where Map key was using an AtomicInteger instead of the value it contain.
2301e10 is described below

commit 2301e106195aba31acd7789126e705ad892a35b1
Author: Emmanuel Lécharny <el...@symas.com>
AuthorDate: Wed Jan 24 16:37:08 2018 +0100

    Fixed issue where Map key was using an AtomicInteger instead of the
    value it contain.
---
 .../org/apache/directory/ldap/client/api/LdapNetworkConnection.java     | 2 +-
 .../main/java/org/apache/directory/ldap/client/api/LdifAnonymizer.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
index 90f99fc..ee38ad6 100644
--- a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
+++ b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
@@ -821,7 +821,7 @@ public class LdapNetworkConnection extends AbstractLdapConnection implements Lda
                         LOG.error( "Error while processing the NoD for {}", responseFuture, e );
                     }
 
-                    futureMap.remove( messageId );
+                    futureMap.remove( messageId.get() );
                 }
 
                 futureMap.clear();
diff --git a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdifAnonymizer.java b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdifAnonymizer.java
index e758e89..c37cd14 100644
--- a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdifAnonymizer.java
+++ b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdifAnonymizer.java
@@ -361,7 +361,7 @@ public class LdifAnonymizer
      */
     public void removeAnonAttributeType( AttributeType attributeType )
     {
-        attributeAnonymizers.remove( attributeType );
+        attributeAnonymizers.remove( attributeType.getOid() );
     }
     
     

-- 
To stop receiving notification emails like this one, please contact
elecharny@apache.org.