directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191633 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/AbandonRequestGrammar.java
Date Tue, 21 Jun 2005 06:45:58 GMT
Author: elecharny
Date: Mon Jun 20 23:45:58 2005
New Revision: 191633

URL: http://svn.apache.org/viewcvs?rev=191633&view=rev
Log:
Deleted the useless LENGTH transitions

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/AbandonRequestGrammar.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/AbandonRequestGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/AbandonRequestGrammar.java?rev=191633&r1=191632&r2=191633&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/AbandonRequestGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/AbandonRequestGrammar.java
Mon Jun 20 23:45:58 2005
@@ -77,26 +77,7 @@
         // Nothing special to do.
         super.transitions[LdapStatesEnum.ABANDON_REQUEST_MESSAGE_ID_TAG][0x50] =
             new GrammarTransition( LdapStatesEnum.ABANDON_REQUEST_MESSAGE_ID_TAG,
-                LdapStatesEnum.ABANDON_REQUEST_MESSAGE_ID_LENGTH, null );
-
-        //  AbandonRequest ::= [APPLICATION 16] MessageID (Length)
-        // Checks the length
-        super.transitions[LdapStatesEnum.ABANDON_REQUEST_MESSAGE_ID_LENGTH][0x50] =
-            new GrammarTransition( LdapStatesEnum.ABANDON_REQUEST_MESSAGE_ID_LENGTH,
-                LdapStatesEnum.ABANDON_REQUEST_MESSAGE_ID_VALUE,
-                new GrammarAction( "Check MessageId Length " )
-                {
-                    public void action( IAsn1Container container ) throws DecoderException
-                    {
-
-                        LdapMessageContainer ldapMessageContainer = ( ( LdapMessageContainer
)
-                                container );
-                        checkLength( ldapMessageContainer.getLdapMessage(),
-                            ldapMessageContainer.getCurrentTLV() );
-
-                        return;
-                    }
-                } );
+                LdapStatesEnum.ABANDON_REQUEST_MESSAGE_ID_VALUE, null );
 
         //  AbandonRequest ::= [APPLICATION 16] MessageID (Value)
         // Checks that MessageId is in [0 .. 2147483647] and store the value in the AbandonRequest
Object



Mime
View raw message