directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1553273 - in /directory/shared/trunk/ldap: codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/ codec/core/src/test/java/org/apache/directory/api/ldap/codec/sort/ model/src/main/java/org/apache/directory/api/ldap/mod...
Date Tue, 24 Dec 2013 13:51:00 GMT
Author: kayyagari
Date: Tue Dec 24 13:50:59 2013
New Revision: 1553273

URL: http://svn.apache.org/r1553273
Log:
fixed a typo in method names

Modified:
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseDecorator.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseGrammar.java
    directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/api/ldap/codec/sort/SortResponseControlTest.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControl.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControlImpl.java

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseDecorator.java?rev=1553273&r1=1553272&r2=1553273&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseDecorator.java
(original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseDecorator.java
Tue Dec 24 13:50:59 2013
@@ -85,9 +85,9 @@ public class SortResponseDecorator exten
         // result code value
         sortRespLen += 1 + 1 + 1;
         
-        if( getAttibuteName() != null )
+        if( getAttributeName() != null )
         {
-            byte[] data = Strings.getBytesUtf8( getAttibuteName() );
+            byte[] data = Strings.getBytesUtf8( getAttributeName() );
             sortRespLen += 1 + TLV.getNbBytes( data.length ) + data.length;
         }
         
@@ -110,9 +110,9 @@ public class SortResponseDecorator exten
         
         BerValue.encodeEnumerated( buffer, getSortResult().getVal() );
         
-        if( getAttibuteName() != null )
+        if( getAttributeName() != null )
         {
-            BerValue.encode( buffer, getAttibuteName() );
+            BerValue.encode( buffer, getAttributeName() );
         }
         
         return buffer;
@@ -171,16 +171,16 @@ public class SortResponseDecorator exten
 
 
     @Override
-    public void setAttibuteName( String attributeName )
+    public void setAttributeName( String attributeName )
     {
-        getDecorated().setAttibuteName( attributeName );
+        getDecorated().setAttributeName( attributeName );
     }
 
 
     @Override
-    public String getAttibuteName()
+    public String getAttributeName()
     {
-        return getDecorated().getAttibuteName();
+        return getDecorated().getAttributeName();
     }
 
 }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseGrammar.java?rev=1553273&r1=1553272&r2=1553273&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseGrammar.java
(original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortResponseGrammar.java
Tue Dec 24 13:50:59 2013
@@ -83,7 +83,7 @@ public class SortResponseGrammar extends
                             LOG.debug( "AttributeType = " + atType );
                         }
                         
-                        container.getControl().setAttibuteName( atType );
+                        container.getControl().setAttributeName( atType );
                         container.setGrammarEndAllowed( true );
                     }
                 } );

Modified: directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/api/ldap/codec/sort/SortResponseControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/api/ldap/codec/sort/SortResponseControlTest.java?rev=1553273&r1=1553272&r2=1553273&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/api/ldap/codec/sort/SortResponseControlTest.java
(original)
+++ directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/api/ldap/codec/sort/SortResponseControlTest.java
Tue Dec 24 13:50:59 2013
@@ -56,7 +56,7 @@ public class SortResponseControlTest ext
         SortResponseControl control = ( SortResponseControl ) decorator.decode( buffer.array()
);
         
         assertEquals( SortResultCode.SUCCESS, control.getSortResult() );
-        assertEquals( "cn", control.getAttibuteName() );
+        assertEquals( "cn", control.getAttributeName() );
         
         ByteBuffer encoded = ByteBuffer.allocate( buffer.capacity() );
         decorator.computeLength();
@@ -80,7 +80,7 @@ public class SortResponseControlTest ext
         SortResponseControl control = ( SortResponseControl ) decorator.decode( buffer.array()
);
         
         assertEquals( SortResultCode.NOSUCHATTRIBUTE, control.getSortResult() );
-        assertNull( control.getAttibuteName() );
+        assertNull( control.getAttributeName() );
         
         ByteBuffer encoded = ByteBuffer.allocate( buffer.capacity() );
         decorator.computeLength();

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControl.java?rev=1553273&r1=1553272&r2=1553273&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControl.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControl.java
Tue Dec 24 13:50:59 2013
@@ -67,11 +67,11 @@ public interface SortResponseControl ext
      */
     // didn't name the method setAttribute*Type*
     // cause in our internal terminology AttributeType is a java type
-    void setAttibuteName( String attributeName );
+    void setAttributeName( String attributeName );
     
     
     /**
      * @return the name of the first offending attribute
      */
-    String getAttibuteName();
+    String getAttributeName();
 }

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControlImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControlImpl.java?rev=1553273&r1=1553272&r2=1553273&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControlImpl.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/controls/SortResponseControlImpl.java
Tue Dec 24 13:50:59 2013
@@ -50,13 +50,13 @@ public class SortResponseControlImpl ext
     }
 
     @Override
-    public void setAttibuteName( String attributeName )
+    public void setAttributeName( String attributeName )
     {
         this.attributeName = attributeName;
     }
 
     @Override
-    public String getAttibuteName()
+    public String getAttributeName()
     {
         return attributeName;
     }
@@ -88,9 +88,9 @@ public class SortResponseControlImpl ext
         
         if( attributeName != null )
         {
-            return ( attributeName.equalsIgnoreCase( that.getAttibuteName() ) );
+            return ( attributeName.equalsIgnoreCase( that.getAttributeName() ) );
         }
-        else if( that.getAttibuteName() == null )
+        else if( that.getAttributeName() == null )
         {
             return true;
         }



Mime
View raw message