directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r164661 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
Date Mon, 25 Apr 2005 21:34:42 GMT
Author: elecharny
Date: Mon Apr 25 14:34:39 2005
New Revision: 164661

URL: http://svn.apache.org/viewcvs?rev=164661&view=rev
Log:
As SPNEGO is very simple, only one grammar will be used, not 10. 

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java?rev=164661&r1=164660&r2=164661&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
Mon Apr 25 14:34:39 2005
@@ -42,14 +42,14 @@
 
     /**
      * Creates a new SpnegoContainer object.
-     * We will store ten grammars, it's enough ...
+     * We will store only one grammar, it's enough ...
      */
     public SpnegoContainer()
     {
         super( );
         currentGrammar = 0;
-        grammars = new IGrammar[10];
-        grammarStack = new IGrammar[10];
+        grammars = new IGrammar[1];
+        grammarStack = new IGrammar[1];
         nbGrammars = 0;
 
         grammars[SpnegoStatesEnum.SPNEGO_GRAMMAR] = SpnegoGrammar.getInstance(); 
@@ -67,6 +67,7 @@
         state      = 0;
         transition = 0;
         spnego.free();
+        spnego = null;
         
         for (int i = 0; i <= currentGrammar; i++ )
         {
@@ -86,7 +87,6 @@
      */
     public SpnegoPOJO getSpnego()
     {
-
         return spnego;
     }
 



Mime
View raw message