directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1747842 - /directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java
Date Sat, 11 Jun 2016 02:48:22 GMT
Author: elecharny
Date: Sat Jun 11 02:48:22 2016
New Revision: 1747842

URL: http://svn.apache.org/viewvc?rev=1747842&view=rev
Log:
Another fix for the Ava constructor : when it's not schemaAware, store the AttributeType in
the Ava

Modified:
    directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java

Modified: directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java?rev=1747842&r1=1747841&r2=1747842&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java
(original)
+++ directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java
Sat Jun 11 02:48:22 2016
@@ -143,15 +143,15 @@ public class Ava implements Externalizab
         {
             if ( schemaManager != null )
             {
-                AttributeType attrType = schemaManager.getAttributeType( ava.normType );
+                attributeType = schemaManager.getAttributeType( ava.normType );
                 
-                if ( attrType != null )
+                if ( attributeType != null )
                 {
-                    normType = attrType.getOid();
+                    normType = attributeType.getOid();
 
                     try
                     {
-                        value = new Value( attrType, ava.value );
+                        value = new Value( attributeType, ava.value );
                     }
                     catch ( LdapInvalidAttributeValueException e )
                     {



Mime
View raw message