[Patch] DropTarget
Michael Koch
konqueror@gmx.de
Thu Jan 27 21:25:00 GMT 2005
Hi list,
I commited the attached patch to move the comment regarding the checked
exception into the javadoc comment of addDropTargetListener().
Michael
2005-01-27 Michael Koch <konqueror@gmx.de>
* java/awt/dnd/DropTarget.java (addDropTargetListener):
Clarified comments.
-------------- next part --------------
Index: java/awt/dnd/DropTarget.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/dnd/DropTarget.java,v
retrieving revision 1.7.20.2
diff -u -r1.7.20.2 DropTarget.java
--- java/awt/dnd/DropTarget.java 27 Jan 2005 19:15:07 -0000 1.7.20.2
+++ java/awt/dnd/DropTarget.java 27 Jan 2005 21:23:32 -0000
@@ -205,16 +205,14 @@
/**
* Adds a new <code>DropTargetListener</code>.
*
- * @exception TooManyListenersException If there is already a
- * <code>DropTargetListener</code>.
+ * @exception TooManyListenersException Sun's JDK does not, despite
+ * documentation, throw this exception here when you install an additional
+ * <code>DropTargetListener</code>. So to be compatible, we do the same
+ * thing.
*/
public void addDropTargetListener (DropTargetListener dtl)
throws TooManyListenersException
{
- // Sun's JDK does not, despite documentation, throw any sort of
- // exception here when you install an additional DropTargetListener.
- // So to be compatible, we do the same thing.
-
dropTargetListener = dtl;
}
More information about the Java-patches
mailing list