Author: tn
Date: Mon Apr  9 17:13:55 2012
New Revision: 1311334

URL: http://svn.apache.org/viewvc?rev=1311334&view=rev
Log:
[COLLECTIONS-388] Fixed javadoc, thanks to Shin Hwei Tan.

Modified:
    
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/FactoryUtils.java
    
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java

Modified: 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/FactoryUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/FactoryUtils.java?rev=1311334&r1=1311333&r2=1311334&view=diff
==============================================================================
--- 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/FactoryUtils.java
 (original)
+++ 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/FactoryUtils.java
 Mon Apr  9 17:13:55 2012
@@ -99,8 +99,8 @@ public class FactoryUtils {
      * @see org.apache.commons.collections.functors.PrototypeFactory
      * 
      * @param prototype  the object to clone each time in the factory
-     * @return the <code>prototype</code> factory
-     * @throws IllegalArgumentException if the prototype is null
+     * @return the <code>prototype</code> factory, or a {@link 
ConstantFactory#NULL_INSTANCE} if
+     * the {@code prototype} is {@code null}
      * @throws IllegalArgumentException if the prototype cannot be cloned
      */
     public static <T> Factory<T> prototypeFactory(T  prototype) {

Modified: 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java
URL: 
http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java?rev=1311334&r1=1311333&r2=1311334&view=diff
==============================================================================
--- 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java
 (original)
+++ 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java
 Mon Apr  9 17:13:55 2012
@@ -51,8 +51,8 @@ public class PrototypeFactory {
      * <ul>
      *
      * @param prototype  the object to clone each time in the factory
-     * @return the <code>prototype</code> factory
-     * @throws IllegalArgumentException if the prototype is null
+     * @return the <code>prototype</code> factory, or a {@link 
ConstantFactory#NULL_INSTANCE} if
+     * the {@code prototype} is {@code null}
      * @throws IllegalArgumentException if the prototype cannot be cloned
      */
     @SuppressWarnings("unchecked")


Reply via email to