directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r178105 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
Date Tue, 24 May 2005 06:37:59 GMT
Author: elecharny
Date: Mon May 23 23:37:59 2005
New Revision: 178105

URL: http://svn.apache.org/viewcvs?rev=178105&view=rev
Log:
Suppressed the pooling mechanism

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java?rev=178105&r1=178104&r2=178105&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenInitPOJO.java
Mon May 23 23:37:59 2005
@@ -136,59 +136,6 @@
     }
 
     //~ Methods ------------------------------------------------------------------------------------
-
-    /**
-     * Free the SpnegoPOJO. We have to free the mechTypes,
-     * the mechToken, the mechListMIC and to reset the flags 
-     */
-    public void free()
-    {
-        // We have to free the OID's
-        for ( int i = 0; i < mechTypeListCurrentSize ; i++ )
-        {
-            if ( mechTypeList[i] != null )
-            {
-                mechTypeList[i].free();
-                mechTypeList[i] = null;
-            }
-        }
-        
-        // Free the mech token and the list MIC
-        if (mechToken != null)
-        {
-            mechToken.free();
-        }
-        
-        if (mechListMIC != null)
-        {
-            mechListMIC.free();
-        }
-        
-        mechTypeListCurrentSize = 0;
-        
-        // Reset the expected lengths
-        negTokenInitSequenceExpectedLength = 0;
-        mechTypesExpectedLength = 0;
-        mechTypeListExpectedLength = 0;
-        mechTokenExpectedLength = 0;
-        reqFlagsExpectedLength = 0;
-        mechListMICExpectedLength = 0;
-        
-        // Resets the flag to false.
-        hasReqFlags = false;
-
-        delegFlag = false;
-        mutualFlag = false;
-        replayFlag = false;
-        sequenceFlag = false;
-        anonFlag = false;
-        confFlag = false;
-        integFlag = false;
-
-        // put back the object in the pool
-        super.free();
-    }
-
     /**
      * Returns the anonFlag
      *

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java?rev=178105&r1=178104&r2=178105&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/pojo/SpnegoNegTokenTargPOJO.java
Mon May 23 23:37:59 2005
@@ -74,41 +74,6 @@
     }
 
     //~ Methods ------------------------------------------------------------------------------------
-
-    /**
-     * Free the SpnegoPOJO. We have to free the supportedMech,
-     * the responseToken, the mecListMIC and to reset the result.
-     */
-    public void free()
-    {
-        negResult = 0;
-
-        if (supportedMech != null)
-        {
-            supportedMech.free();
-        }
-        
-        if (responseToken != null)
-        {
-            responseToken.free();
-        }
-        
-        if (mechListMIC != null)
-        {
-            mechListMIC.free();
-        }
-        
-        // Reset the expected lengths
-        negTokenTargSequenceExpectedLength = 0;
-        negResultExpectedLength = 0;
-        supportedMechExpectedLength = 0;
-        responseTokenExpectedLength = 0;
-        mechListMICExpectedLength = 0;
-
-        // put back the object in the pool
-        super.free();
-    }
-
     /**
      * Returns the mechListMIC
      *



Mime
View raw message