directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191599 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/AbstractGrammar.java
Date Tue, 21 Jun 2005 00:38:36 GMT
Author: elecharny
Date: Mon Jun 20 17:38:35 2005
New Revision: 191599

URL: http://svn.apache.org/viewcvs?rev=191599&view=rev
Log:
Using the new constant declared in IStates.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/AbstractGrammar.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/AbstractGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/AbstractGrammar.java?rev=191599&r1=191598&r2=191599&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/AbstractGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/AbstractGrammar.java
Mon Jun 20 17:38:35 2005
@@ -116,7 +116,7 @@
      */
     public GrammarTransition getTransition( int state, int tag )
     {
-        return transitions[state][tag & 0x00FF];
+        return transitions[state][tag & IStates.STATES_SWITCH_MASK];
     }
 
     /**
@@ -133,7 +133,7 @@
         int      currentState   = container.getTransition();
         IGrammar currentGrammar = container.getGrammar();
 
-        // We have to deal with the special case of a GRAMLMAR_END state
+        // We have to deal with the special case of a GRAMMAR_END state
         if ( currentState == IStates.END_STATE )
         {
             currentState = container.restoreGrammar();
@@ -152,7 +152,7 @@
         {
 
             GrammarTransition transition = ( ( AbstractGrammar ) container.getGrammar() )
-                .getTransition( currentState, tagByte & 0x00FF );
+                .getTransition( currentState, tagByte & IStates.STATES_SWITCH_MASK );
 
             if ( transition == null )
             {



Mime
View raw message