I'm checking this in.
This adds a trivial new 1.5 method to java.awt.Insets.
It also adds a missing @since.
Tom
2006-03-03 Tom Tromey <[EMAIL PROTECTED]>
* java/awt/Insets.java (set): New method.
(equals): Added @since.
Index: java/awt/Insets.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Insets.java,v
retrieving revision 1.8
diff -u -r1.8 Insets.java
--- java/awt/Insets.java 2 Jul 2005 20:32:25 -0000 1.8
+++ java/awt/Insets.java 3 Mar 2006 23:18:42 -0000
@@ -100,11 +100,31 @@
}
/**
+ * Set the contents of this Insets object to the specified values.
+ *
+ * @param top the top inset
+ * @param left the left inset
+ * @param bottom the bottom inset
+ * @param right the right inset
+ *
+ * @since 1.5
+ */
+ public void set(int top, int left, int bottom, int right)
+ {
+ this.top = top;
+ this.left = left;
+ this.bottom = bottom;
+ this.right = right;
+ }
+
+ /**
* Tests whether this object is equal to the specified object. The other
* object must be an instance of Insets with identical field values.
*
* @param obj the object to test against
* @return true if the specified object is equal to this one
+ *
+ * @since 1.1
*/
public boolean equals(Object obj)
{