commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevencasw...@apache.org
Subject svn commit: r201881 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/
Date Sun, 26 Jun 2005 17:42:10 GMT
Author: stevencaswell
Date: Sun Jun 26 10:42:09 2005
New Revision: 201881

URL: http://svn.apache.org/viewcvs?rev=201881&view=rev
Log:
corrected style issues (mostly empty blocks and missing javadocs)

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/BooleanUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharSetUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/NumberUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ObjectUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/RandomStringUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/Validate.java
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/WordUtils.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ArrayUtils.java Sun
Jun 26 10:42:09 2005
@@ -133,6 +133,7 @@
      * to operate.</p>
      */
     public ArrayUtils() {
+      ; // empty constructor
     }
     
     // Basic methods handling multi-dimensional arrays

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/BooleanUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/BooleanUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/BooleanUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/BooleanUtils.java Sun
Jun 26 10:42:09 2005
@@ -40,6 +40,7 @@
      * to operate.</p>
      */
     public BooleanUtils() {
+      ; // empty constructor
     }
 
     // Boolean utilities

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharSetUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharSetUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharSetUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharSetUtils.java Sun
Jun 26 10:42:09 2005
@@ -40,6 +40,7 @@
      * to operate.</p>
      */
     public CharSetUtils() {
+      ; // empty constructor
     }
 
     // Factory

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/CharUtils.java Sun
Jun 26 10:42:09 2005
@@ -64,6 +64,7 @@
      * to operate.</p>
      */
     public CharUtils() {
+      ; // empty constructor
     }
 
     //-----------------------------------------------------------------------

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java Sun
Jun 26 10:42:09 2005
@@ -79,6 +79,7 @@
      * instance to operate.</p>
      */
     public ClassUtils() {
+      ; // empty constructor
     }
 
     // Short class name

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/NumberUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/NumberUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/NumberUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/NumberUtils.java Sun
Jun 26 10:42:09 2005
@@ -44,6 +44,7 @@
      * to operate.</p>
      */
     public NumberUtils() {
+      ; // empty constructor
     }
 
     //--------------------------------------------------------------------
@@ -213,6 +214,7 @@
                         }
 
                     } catch (NumberFormatException nfe) {
+                      ; // empty catch
                     }
                     //Fall through
                 case 'd' :
@@ -223,10 +225,12 @@
                             return d;
                         }
                     } catch (NumberFormatException nfe) {
+                      ; // empty catch
                     }
                     try {
                         return createBigDecimal(numeric);
                     } catch (NumberFormatException e) {
+                      ; // empty catch
                     }
                     //Fall through
                 default :
@@ -246,10 +250,12 @@
                 try {
                     return createInteger(val);
                 } catch (NumberFormatException nfe) {
+                  ; // empty catch
                 }
                 try {
                     return createLong(val);
                 } catch (NumberFormatException nfe) {
+                  ; // empty catch
                 }
                 return createBigInteger(val);
 
@@ -262,6 +268,7 @@
                         return f;
                     }
                 } catch (NumberFormatException nfe) {
+                  ; // empty catch
                 }
                 try {
                     Double d = createDouble(val);
@@ -269,6 +276,7 @@
                         return d;
                     }
                 } catch (NumberFormatException nfe) {
+                  ; // empty catch
                 }
 
                 return createBigDecimal(val);

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ObjectUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ObjectUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ObjectUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ObjectUtils.java Sun
Jun 26 10:42:09 2005
@@ -62,6 +62,7 @@
      * to operate.</p>
      */
     public ObjectUtils() {
+      ; // empty constructor
     }
 
     // Defaulting
@@ -258,6 +259,7 @@
          * Restricted constructor - singleton.
          */
         Null() {
+          ; // empty constructor
         }
         
         /**

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/RandomStringUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/RandomStringUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/RandomStringUtils.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/RandomStringUtils.java
Sun Jun 26 10:42:09 2005
@@ -46,6 +46,7 @@
      * to operate.</p>
      */
     public RandomStringUtils() {
+      ; // empty constructor
     }
 
     // Random

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java
Sun Jun 26 10:42:09 2005
@@ -51,6 +51,7 @@
      * instance to operate.</p>
      */
     public StringEscapeUtils() {
+      ; // empty constructor
     }
 
     // Java and JavaScript
@@ -137,6 +138,13 @@
         escapeJavaStyleString(out, str, true);
     }
 
+    /**
+     * <p>Worker method for the {@link escapeJavaScript(String) method.</p>
+     * 
+     * @param str String to escape values in, may be null
+     * @param escapeSingleQuotes escapes single quotes if <code>true</code>
+     * @return the escaped string
+     */
     private static String escapeJavaStyleString(String str, boolean escapeSingleQuotes) {
         if (str == null) {
             return null;
@@ -152,6 +160,14 @@
         }
     }
 
+    /**
+     * <p>Worker method for the {@link escapeJavaScript(String) method.</p>
+     * 
+     * @param out write to receieve the escaped string
+     * @param str String to escape values in, may be null
+     * @param escapeSingleQuote escapes single quotes if <code>true</code>
+     * @throws IOException if an IOException occurs
+     */
     private static void escapeJavaStyleString(Writer out, String str, boolean escapeSingleQuote)
throws IOException {
         if (out == null) {
             throw new IllegalArgumentException("The Writer must not be null");
@@ -490,7 +506,7 @@
      *
      * @param str  the <code>String</code> to unescape, may be null
      * @return a new unescaped <code>String</code>, <code>null</code>
if null string input
-     * @see #escapeHtml(String)
+     * @see #escapeHtml(Writer, String)
      **/
     public static String unescapeHtml(String str) {
         if (str == null) {
@@ -509,6 +525,23 @@
         }
     }
     
+    /**
+     * <p>Unescapes a string containing entity escapes to a string
+     * containing the actual Unicode characters corresponding to the
+     * escapes. Supports HTML 4.0 entities.</p>
+     *
+     * <p>For example, the string "&amp;lt;Fran&amp;ccedil;ais&amp;gt;"
+     * will become "&lt;Fran&ccedil;ais&gt;"</p>
+     *
+     * <p>If an entity is unrecognized, it is left alone, and inserted
+     * verbatim into the result string. e.g. "&amp;gt;&amp;zzzz;x" will
+     * become "&gt;&amp;zzzz;x".</p>
+     *
+     * @param writer writer receiving the unescaped string
+     * @param string  the <code>String</code> to unescape, may be null
+     * @throws IOException if an IOException occurs
+     * @see #escapeHtml(String)
+     **/
     public static void unescapeHtml(Writer writer, String string) throws IOException {
         if (writer == null ) {
             throw new IllegalArgumentException ("The Writer must not be null.");

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Sun
Jun 26 10:42:09 2005
@@ -2105,7 +2105,8 @@
      * StringUtils.splitByWholeSeparator("ab   de fg", null, 0)    = ["ab", "de", "fg"]
      * StringUtils.splitByWholeSeparator("ab:cd:ef", ":", 2)       = ["ab", "cd"]
      * StringUtils.splitByWholeSeparator("abstemiouslyaeiouyabstemiously", "aeiouy", 2) =
["bst", "m"]
-     * StringUtils.splitByWholeSeparator("abstemiouslyaeiouyabstemiously", "aeiouy", 2) 
= ["abstemiously", "abstemiously"]
+     * StringUtils.splitByWholeSeparator("abstemiouslyaeiouyabstemiously", "aeiouy", 2) =

+     * ["abstemiously", "abstemiously"]
      * </pre>
      *
      * @param str  the String to parse, may be null

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/Validate.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/Validate.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/Validate.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/Validate.java Sun Jun
26 10:42:09 2005
@@ -44,6 +44,7 @@
      * Constructor. This class should not normally be instantiated.
      */
     public Validate() {
+      ; // empty constructor
     }
     
     // isTrue

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/WordUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/WordUtils.java?rev=201881&r1=201880&r2=201881&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/WordUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/WordUtils.java Sun
Jun 26 10:42:09 2005
@@ -41,6 +41,7 @@
      * instance to operate.</p>
      */
     public WordUtils() {
+      ; // empty constructor
     }
 
     // Wrapping



---------------------------------------------------------------------
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