From 06ad5b4b6befe82913463dc62cbf85e207e3c428 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Wed, 18 Sep 2002 19:53:52 +0000 Subject: [PATCH] And now i'll add a comment about the public constructor. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137042 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/lang/RandomStringUtils.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/lang/RandomStringUtils.java b/src/java/org/apache/commons/lang/RandomStringUtils.java index e94d0c9dc..5e59c9772 100644 --- a/src/java/org/apache/commons/lang/RandomStringUtils.java +++ b/src/java/org/apache/commons/lang/RandomStringUtils.java @@ -63,7 +63,7 @@ * @author Henri Yandell * @author Steven Caswell * @author Stephen Colebourne - * @version $Id: RandomStringUtils.java,v 1.3 2002/09/18 19:52:26 bayard Exp $ + * @version $Id: RandomStringUtils.java,v 1.4 2002/09/18 19:53:52 bayard Exp $ */ public class RandomStringUtils { @@ -75,7 +75,10 @@ public class RandomStringUtils { private static final Random RANDOM = new Random(); /** - * Prevent construction of RandomStringUtils instances + * RandomStringUtils instances should NOT be constructed in standard programming. + * Instead, the class should be used as RandomStringUtils.random(5);. + * This constructor is public to permit tools that require a JavaBean instance + * to operate. */ public RandomStringUtils() { }