You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/04/03 20:05:28 UTC
svn commit: r159947 -
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
Author: elecharny
Date: Sun Apr 3 11:05:27 2005
New Revision: 159947
URL: http://svn.apache.org/viewcvs?view=rev&rev=159947
Log:
Replaced String by MutableString.
Modified:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java?view=diff&r1=159946&r2=159947
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java Sun Apr 3 11:05:27 2005
@@ -16,6 +16,8 @@
*/
package org.apache.asn1.ldap.pojo;
+import org.apache.asn1.util.MutableString;
+
/**
* A BindRequest POJO. It's a sub-class of AbstractPOJO, and it implements
* the LdapPOJO interface to be seen as a member of the LdapMessage
@@ -31,7 +33,7 @@
private int version;
/** The name of the user requesting a bind */
- private String name;
+ private MutableString name;
/** The authentication used to bind the user */
private LdapPOJO authentication;
@@ -76,8 +78,7 @@
*/
public String getName()
{
-
- return name;
+ return (name == null ? null : name.toString());
}
/**
@@ -85,7 +86,7 @@
*
* @param name The user name
*/
- public void setName( String name )
+ public void setName( MutableString name )
{
this.name = name;
}
@@ -117,7 +118,11 @@
*/
public void free()
{
- name = null;
+ if (name != null)
+ {
+ name.free();
+ }
+
version = 0;
// free the authentication POJO