directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r159946 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
Date Sun, 03 Apr 2005 18:04:55 GMT
Author: elecharny
Date: Sun Apr  3 11:04:55 2005
New Revision: 159946

URL: http://svn.apache.org/viewcvs?view=rev&rev=159946
Log:
Replaced String by MutableString.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java?view=diff&r1=159945&r2=159946
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
Sun Apr  3 11:04:55 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.asn1.ldap.pojo;
 
+import org.apache.asn1.util.MutableString;
+
 /**
  * A POJO which stores the Simple authentication of a BindRequest.
  * 
@@ -26,7 +28,7 @@
     //~ Instance fields ----------------------------------------------------------------------------
 
     /** The simple authentication password */
-    private String simple;
+    private MutableString simple;
 
     //~ Methods ------------------------------------------------------------------------------------
 
@@ -37,8 +39,7 @@
      */
     public String getSimple()
     {
-
-        return simple;
+        return (simple == null ? null : simple.toString());
     }
 
     /**
@@ -46,7 +47,7 @@
      *
      * @param simple The simple password
      */
-    public void setSimple( String simple )
+    public void setSimple( MutableString simple )
     {
         this.simple = simple;
     }
@@ -56,7 +57,11 @@
      */
     public void free() 
     {
-    	simple = null;
+    	if (simple != null)
+    	{
+    	    simple.free();
+    	}
+    	
     	super.free();
     }
 }



Mime
View raw message