directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1065438 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/search/controls/subentries/SubentriesFactory.java
Date Mon, 31 Jan 2011 00:14:18 GMT
Author: akarasulu
Date: Mon Jan 31 00:14:17 2011
New Revision: 1065438

URL: http://svn.apache.org/viewvc?rev=1065438&view=rev
Log:
fixing another test

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/search/controls/subentries/SubentriesFactory.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/search/controls/subentries/SubentriesFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/search/controls/subentries/SubentriesFactory.java?rev=1065438&r1=1065437&r2=1065438&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/search/controls/subentries/SubentriesFactory.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/search/controls/subentries/SubentriesFactory.java
Mon Jan 31 00:14:17 2011
@@ -67,13 +67,14 @@ public class SubentriesFactory implement
     
     public SubentriesDecorator decorate( Subentries control )
     {
-        if ( control.getOid().equals( Subentries.OID ) )
+        if ( ! control.getOid().equals( Subentries.OID ) )
         {
             throw new IllegalArgumentException( "Bad control provided: " + control );
         }
         
         return new SubentriesDecorator( codec, control );
     }
+    
 
     public Control toJndiControl( Subentries control ) throws EncoderException
     {



Mime
View raw message