directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r938467 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapTransformer.java
Date Tue, 27 Apr 2010 14:17:38 GMT
Author: kayyagari
Date: Tue Apr 27 14:17:38 2010
New Revision: 938467

URL: http://svn.apache.org/viewvc?rev=938467&view=rev
Log:
fixed wrong casts

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapTransformer.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapTransformer.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapTransformer.java?rev=938467&r1=938466&r2=938467&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapTransformer.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapTransformer.java
Tue Apr 27 14:17:38 2010
@@ -624,24 +624,24 @@ public class LdapTransformer
                     {
                         filter = new AttributeValueAssertionFilter( LdapConstants.GREATER_OR_EQUAL_FILTER
);
                         AttributeValueAssertion assertion = new AttributeValueAssertion();
-                        assertion.setAttributeDesc( ((EqualityNode<?>)exprNode).getAttribute()
);
-                        assertion.setAssertionValue( ((EqualityNode<?>)exprNode).getValue()
);
+                        assertion.setAttributeDesc( ((GreaterEqNode<?>)exprNode).getAttribute()
);
+                        assertion.setAssertionValue( ((GreaterEqNode<?>)exprNode).getValue()
);
                         ((AttributeValueAssertionFilter)filter).setAssertion( assertion );
                     }
                     else if ( exprNode instanceof LessEqNode<?> ) 
                     {
                         filter = new AttributeValueAssertionFilter( LdapConstants.LESS_OR_EQUAL_FILTER
);
                         AttributeValueAssertion assertion = new AttributeValueAssertion();
-                        assertion.setAttributeDesc( ((EqualityNode<?>)exprNode).getAttribute()
);
-                        assertion.setAssertionValue( ((EqualityNode<?>)exprNode).getValue()
);
+                        assertion.setAttributeDesc( ((LessEqNode<?>)exprNode).getAttribute()
);
+                        assertion.setAssertionValue( ((LessEqNode<?>)exprNode).getValue()
);
                         ((AttributeValueAssertionFilter)filter).setAssertion( assertion );
                     }
                     else if ( exprNode instanceof ApproximateNode<?> )
                     {
                         filter = new AttributeValueAssertionFilter( LdapConstants.APPROX_MATCH_FILTER
);
                         AttributeValueAssertion assertion = new AttributeValueAssertion();
-                        assertion.setAttributeDesc( ((EqualityNode<?>)exprNode).getAttribute()
);
-                        assertion.setAssertionValue( ((EqualityNode<?>)exprNode).getValue()
);
+                        assertion.setAttributeDesc( ((ApproximateNode<?>)exprNode).getAttribute()
);
+                        assertion.setAssertionValue( ((ApproximateNode<?>)exprNode).getValue()
);
                         ((AttributeValueAssertionFilter)filter).setAssertion( assertion );
                     }
                 }



Mime
View raw message