From f806874001b00b04d91192bcca7b5d4093f3cee0 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Mon, 9 Apr 2012 17:13:55 +0000 Subject: [PATCH] [COLLECTIONS-388] Fixed javadoc, thanks to Shin Hwei Tan. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1311334 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/collections/FactoryUtils.java | 4 ++-- .../apache/commons/collections/functors/PrototypeFactory.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/collections/FactoryUtils.java b/src/main/java/org/apache/commons/collections/FactoryUtils.java index 39f879054..66bc303d2 100644 --- a/src/main/java/org/apache/commons/collections/FactoryUtils.java +++ b/src/main/java/org/apache/commons/collections/FactoryUtils.java @@ -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 prototype factory - * @throws IllegalArgumentException if the prototype is null + * @return the prototype factory, or a {@link ConstantFactory#NULL_INSTANCE} if + * the {@code prototype} is {@code null} * @throws IllegalArgumentException if the prototype cannot be cloned */ public static Factory prototypeFactory(T prototype) { diff --git a/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java b/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java index 77d78334b..7c341a778 100644 --- a/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java +++ b/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java @@ -51,8 +51,8 @@ public class PrototypeFactory { *
    * * @param prototype the object to clone each time in the factory - * @return the prototype factory - * @throws IllegalArgumentException if the prototype is null + * @return the prototype factory, or a {@link ConstantFactory#NULL_INSTANCE} if + * the {@code prototype} is {@code null} * @throws IllegalArgumentException if the prototype cannot be cloned */ @SuppressWarnings("unchecked")