+2004-06-01 Tom Tromey <tromey@redhat.com>
+
+ * java/io/ObjectStreamField.java: Cleaned up imports.
+
+2004-06-01 Michael Koch <konqueror@gmx.de>
+
+ * java/io/ObjectStreamField.java: Style and javadoc cleanup.
+
+2004-06-01 Mark Wielaard <mark@klomp.org>
+
+ * java/io/Writer.java (Writer(Object)): Fixed API doc.
+
2004-06-01 Michael Koch <konqueror@gmx.de>
* java/security/Security.java
/* ObjectStreamField.java -- Class used to store name and class of fields
- Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
package java.io;
+import gnu.java.lang.reflect.TypeSignature;
+
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
-import gnu.java.lang.reflect.TypeSignature;
import java.security.AccessController;
import java.security.PrivilegedAction;
*
* @param name Name of the field to export.
* @param type Type of the field in the concerned class.
+ * @param unshared true if field will be unshared, false otherwise.
*/
public ObjectStreamField (String name, Class type, boolean unshared)
{
return typename.length() == 1;
}
- public int compareTo (Object o)
+ /**
+ * Compares this object to the given object.
+ *
+ * @param obj the object to compare to.
+ *
+ * @return -1, 0 or 1.
+ */
+ public int compareTo (Object obj)
{
- ObjectStreamField f = (ObjectStreamField)o;
+ ObjectStreamField f = (ObjectStreamField) obj;
boolean this_is_primitive = isPrimitive ();
boolean f_is_primitive = f.isPrimitive ();
" in class " + field.getDeclaringClass());
}
+ /**
+ * Returns a string representing this object.
+ *
+ * @return the string.
+ */
public String toString ()
{
return "ObjectStreamField< " + type + " " + name + " >";
throw new InternalError(x.getMessage());
}
}
-
+
final void setByteField(Object obj, byte val)
{
try
throw new InternalError(x.getMessage());
}
}
-
+
final void setIntField(Object obj, int val)
{
try