commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r966812 - in /commons/proper/lang/trunk/src: main/java/org/apache/commons/lang3/event/EventUtils.java test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java test/java/org/apache/commons/lang3/event/EventUtilsTest.java
Date Thu, 22 Jul 2010 19:18:11 GMT
Author: jcarman
Date: Thu Jul 22 19:18:10 2010
New Revision: 966812

URL: http://svn.apache.org/viewvc?rev=966812&view=rev
Log:
Improving javadoc documentation.

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/event/EventUtils.java
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/event/EventUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/event/EventUtils.java?rev=966812&r1=966811&r2=966812&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/event/EventUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/event/EventUtils.java
Thu Jul 22 19:18:10 2010
@@ -27,15 +27,20 @@ import java.util.Arrays;
 import java.util.HashSet;
 import java.util.Set;
 
+/**
+ * Provides some useful event-based utility methods.
+ *
+ * @since 3.0
+ */
 public class EventUtils
 {
     /**
      * Adds an event listener to the specified source.  This looks for an "add" method corresponding
to the event
      * type (addActionListener, for example).
-     * @param eventSource the event source
-     * @param listenerType the event listener type
-     * @param listener the listener
-     * @param <L> the event listener type
+     * @param eventSource   the event source
+     * @param listenerType  the event listener type
+     * @param listener      the listener
+     * @param <L>           the event listener type
      *
      * @throws IllegalArgumentException if the object doesn't support the listener type
      */
@@ -62,7 +67,7 @@ public class EventUtils
     /**
      * Binds an event listener to a specific method on a specific object.
      *
-     * @param <L>
+     * @param <L>          the event listener type
      * @param target       the target object
      * @param methodName   the name of the method to be called
      * @param eventSource  the object which is generating events (JButton, JList, etc.)

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java?rev=966812&r1=966811&r2=966812&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java
Thu Jul 22 19:18:10 2010
@@ -24,6 +24,9 @@ import java.awt.event.ActionListener;
 import java.util.ArrayList;
 import java.util.List;
 
+/**
+ * @since 3.0
+ */
 public class EventListenerSupportTest extends TestCase
 {
     public void testEventDispatchOrder()

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java?rev=966812&r1=966811&r2=966812&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java
Thu Jul 22 19:18:10 2010
@@ -29,6 +29,9 @@ import java.lang.reflect.Proxy;
 import java.util.Map;
 import java.util.TreeMap;
 
+/**
+ * @since 3.0
+ */
 public class EventUtilsTest extends TestCase
 {
     public void testAddEventListener()



Mime
View raw message