+2003-06-27 Michael Koch <konqueror@gmx.de>
+
+ * javax/naming/CompositeName.java
+ (serialVersionUID): New member variable.
+ * javax/naming/CompoundName.java
+ (serialVersionUID): New member variable.
+ * javax/naming/InitialContext.java
+ (InitialContext): Throws NamingException.
+ (init): Likewise.
+ * javax/naming/LinkRef.java
+ (serialVersionUID): New member variable.
+ (gteLinkName): Throws NamingException.
+ * javax/naming/NamingException.java
+ (serialVersionUID): New member variable.
+ * javax/naming/NamingSecurityException.java
+ (NamingSecurityException): Made abstract.
+ (serialVersionUID): New member variable.
+ * javax/naming/ReferralException.java
+ (serialVersionUID): New member variable.
+ * javax/naming/StringRefAddr.java
+ (serialVersionUID): New member variable.
+ * javax/naming/directory/BasicAttribute.java:
+ Reworked imports.
+ (serialVersionUID): New member variable.
+ (get): Throws NamingException.
+ (getAll): Throws NamingException.
+ * javax/naming/directory/BasicAttributes.java:
+ Reworked imports.
+ (serialVersionUID): New member variable.
+ * javax/naming/ldap/UnsolicitedNotificationEvent.java
+ (serialVersionUID): New member variable.
+
2003-06-27 Michael Koch <konqueror@gmx.de>
* Makefile.am
*/
public class CompositeName implements Name, Cloneable, Serializable
{
+ private static final long serialVersionUID = 1667768148915813118L;
+
public CompositeName ()
{
elts = new Vector ();
*/
public class CompoundName implements Name, Cloneable, Serializable
{
+ private static final long serialVersionUID = 3513100557083972036L;
+
private CompoundName (Properties syntax)
{
elts = new Vector ();
package javax.naming;
+import java.applet.Applet;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Properties;
-import java.applet.Applet;
-import java.util.Hashtable;
import javax.naming.spi.NamingManager;
public class InitialContext implements Context
protected Hashtable myProps;
public InitialContext (Hashtable environment)
+ throws NamingException
{
init (environment);
}
protected InitialContext (boolean lazy)
+ throws NamingException
{
if (! lazy)
init (null);
}
public InitialContext ()
+ throws NamingException
{
init (null);
}
-
+
+ /** @since 1.3 */
protected void init (Hashtable environment)
+ throws NamingException
{
// FIXME: Is this enough?
final String[] properties = {
*/
public class LinkRef extends Reference
{
+ private static final long serialVersionUID = -5386290613498931298L;
+
public LinkRef (Name name)
{
this (name.toString ());
}
public String getLinkName ()
+ throws NamingException
{
StringRefAddr sra = (StringRefAddr) get (0);
return (String) sra.getContent ();
*/
public class NamingException extends Exception
{
+ private static final long serialVersionUID = -1299181962103167177L;
/**
* The root cause of this exception. Might be null. Set by calling
import java.lang.Exception;
-public class NamingSecurityException extends NamingException
+public abstract class NamingSecurityException extends NamingException
{
+ private static final long serialVersionUID = 5855287647294685775L;
+
public NamingSecurityException ()
{
super ();
public abstract class ReferralException extends NamingException
{
+ private static final long serialVersionUID = -2881363844695698876L;
+
protected ReferralException ()
{
super ();
*/
public class StringRefAddr extends RefAddr
{
+ private static final long serialVersionUID = -8913762495138505527L;
/**
* The possibly null content of this RefAddr.
package javax.naming.directory;
-import javax.naming.*;
-import java.util.*;
+import java.util.NoSuchElementException;
+import java.util.Vector;
+import javax.naming.NamingEnumeration;
+import javax.naming.NamingException;
+import javax.naming.OperationNotSupportedException;
/**
* @author Tom Tromey <tromey@redhat.com>
*/
public class BasicAttribute implements Attribute
{
+ private static final long serialVersionUID = 6743528196119291326L;
+
/** The ID of this attribute. */
protected String attrID;
/** True if this attribute's values are ordered. */
}
public Object get ()
+ throws NamingException
{
if (values.size () == 0)
throw new NoSuchElementException ("no values");
}
public Object get (int index)
+ throws NamingException
{
return values.get (index);
}
public NamingEnumeration getAll ()
+ throws NamingException
{
return new BasicAttributeEnumeration ();
}
package javax.naming.directory;
-import javax.naming.*;
-import java.util.*;
+import java.util.NoSuchElementException;
+import java.util.Vector;
+import javax.naming.NamingEnumeration;
+import javax.naming.NamingException;
/**
* @author Tom Tromey <tromey@redhat.com>
*/
public class BasicAttributes implements Attributes
{
+ private static final long serialVersionUID = 4980164073184639448L;
+
public BasicAttributes ()
{
this (false);
package javax.naming.ldap;
+
import java.util.EventObject;
/**
* @author Warren Levy <warrenl@redhat.com>
* @date June 5, 2001
*/
-
public class UnsolicitedNotificationEvent extends EventObject
{
+ private static final long serialVersionUID = -2382603380799883705L;
+
// Serialized fields.
private UnsolicitedNotification notice;