commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r510809 - /jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/EmailUtils.java
Date Fri, 23 Feb 2007 04:28:31 GMT
Author: dion
Date: Thu Feb 22 20:28:31 2007
New Revision: 510809

URL: http://svn.apache.org/viewvc?view=rev&rev=510809
Log:
checkstyle fixes

Modified:
    jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/EmailUtils.java

Modified: jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/EmailUtils.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/EmailUtils.java?view=diff&rev=510809&r1=510808&r2=510809
==============================================================================
--- jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/EmailUtils.java (original)
+++ jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/EmailUtils.java Thu
Feb 22 20:28:31 2007
@@ -23,7 +23,8 @@
  * Utility methods used by commons-email.
  *
  * <p>
- * These methods are copied from other commons components (commons-lang) to avoid creating
a dependency for such a small component.
+ * These methods are copied from other commons components (commons-lang) to avoid creating
+ * a dependency for such a small component.
  * </p>
  *
  * <p>
@@ -39,8 +40,8 @@
 {
     /**
      * <p>
-     * Random object used by random method. This has to be not local to the random method
so as to not return the same value in the
-     * same millisecond.
+     * Random object used by random method. This has to be not local to the random method
+     * so as to not return the same value in the same millisecond.
      * </p>
      */
     private static final Random RANDOM = new Random();
@@ -131,9 +132,9 @@
      * </p>
      *
      * <p>
-     * If start and end are both <code>0</code>, start and end are set to <code>'
'</code> and <code>'z'</code>, the ASCII
-     * printable characters, will be used, unless letters and numbers are both <code>false</code>,
in which case, start and end
-     * are set to <code>0</code> and <code>Integer.MAX_VALUE</code>.
+     * If start and end are both <code>0</code>, start and end are set to <code>'
'</code> and <code>'z'</code>,
+     * the ASCII printable characters, will be used, unless letters and numbers are both
<code>false</code>,
+     * in which case, start and end are set to <code>0</code> and <code>Integer.MAX_VALUE</code>.
      * </p>
      *
      * <p>
@@ -141,9 +142,9 @@
      * </p>
      *
      * <p>
-     * This method accepts a user-supplied {@link Random} instance to use as a source of
randomness. By seeding a single {@link
-     * Random} instance with a fixed seed and using it for each call, the same random sequence
of strings can be generated
-     * repeatedly and predictably.
+     * This method accepts a user-supplied {@link Random} instance to use as a source of
randomness. By seeding a
+     * single {@link Random} instance with a fixed seed and using it for each call, the same
random sequence of strings
+     * can be generated repeatedly and predictably.
      * </p>
      *
      * @param count the length of random string to create
@@ -151,7 +152,8 @@
      * @param end the position in set of chars to end before
      * @param letters only allow letters?
      * @param numbers only allow numbers?
-     * @param chars the set of chars to choose randoms from. If <code>null</code>,
then it will use the set of all chars.
+     * @param chars the set of chars to choose randoms from. If <code>null</code>,
+     *              then it will use the set of all chars.
      * @param random a source of randomness.
      *
      * @return the random string
@@ -160,7 +162,14 @@
      *
      * @since Commons Lang v2.1, svn 201930
      */
-    private static String random(int count, int start, int end, boolean letters, boolean
numbers, char [] chars, Random random)
+    private static String random(
+        int count,
+        int start,
+        int end,
+        boolean letters,
+        boolean numbers,
+        char [] chars,
+        Random random)
     {
         if (count == 0)
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message