Hi, this small patch makes Insets.toString() return the information formatted in the same way as on the RI.
ChangeLog:
2006-06-22 Robert Schuster <[EMAIL PROTECTED]>
* java/awt/Insets.java: Updated copyright year.
(toString): Changed string, removed a line from the
documentation.
cya
Robert
Index: java/awt/Insets.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Insets.java,v
retrieving revision 1.9
diff -u -r1.9 Insets.java
--- java/awt/Insets.java 3 Mar 2006 23:22:21 -0000 1.9
+++ java/awt/Insets.java 22 Jun 2006 15:15:59 -0000
@@ -1,5 +1,5 @@
/* Insets.java -- information about a container border
- Copyright (C) 1999, 2000, 2002, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2002, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -149,14 +149,13 @@
/**
* Returns a string representation of this object, which will be non-null.
- * The format is unspecified, but appears to be <code>XXX what is it?</code>.
*
* @return a string representation of this object
*/
public String toString()
{
- return getClass().getName() + "(top=" + top + ",bottom=" + bottom +
- ",left=" + left + ",right=" + right + ')';
+ return getClass().getName() + "[top=" + top + ",left=" + left
+ + ",bottom=" + bottom + ",right=" + right + ']';
}
/**
signature.asc
Description: OpenPGP digital signature
