You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ps...@apache.org on 2003/09/07 16:32:35 UTC

cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/reflect MethodUtilsTestCase.java

psteitz     2003/09/07 07:32:35

  Modified:    lang/src/java/org/apache/commons/lang BitField.java
                        BooleanUtils.java CharRange.java CharSet.java
                        CharSetUtils.java ClassUtils.java Entities.java
                        NotImplementedException.java NumberUtils.java
                        ObjectUtils.java RandomStringUtils.java
                        StringEscapeUtils.java StringUtils.java
               lang/src/java/org/apache/commons/lang/builder
                        CompareToBuilder.java EqualsBuilder.java
                        ReflectionToStringBuilder.java
               lang/src/java/org/apache/commons/lang/enum Enum.java
                        ValuedEnum.java
               lang/src/java/org/apache/commons/lang/exception
                        ExceptionUtils.java Nestable.java
                        NestableDelegate.java NestableException.java
               lang/src/java/org/apache/commons/lang/math Fraction.java
                        NumberUtils.java
               lang/src/java/org/apache/commons/lang/reflect
                        FieldUtils.java MethodUtils.java
                        ReflectionUtils.java
               lang/src/java/org/apache/commons/lang/time
                        DateFormatUtils.java DurationFormatUtils.java
                        FastDateFormat.java StopWatch.java
               lang/src/test/org/apache/commons/lang
                        RandomStringUtilsTest.java
               lang/src/test/org/apache/commons/lang/math
                        RandomUtilsTest.java
               lang/src/test/org/apache/commons/lang/reflect
                        MethodUtilsTestCase.java
  Log:
  Fixed typos in javadoc and some inline comments.
  Pr #22908.
  Patch submitted by Janek Bogucki.
  Reviewed by Phil Steitz.
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/BitField.java
  
  Index: BitField.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/BitField.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BitField.java	22 Aug 2003 16:57:04 -0000	1.2
  +++ BitField.java	7 Sep 2003 14:32:34 -0000	1.3
  @@ -187,7 +187,7 @@
        * <p>Replaces the bits with new values.</p>
        *
        * @see #getValue
  -     * @param holder the int data containint the bits we're
  +     * @param holder the int data containing the bits we're
        *  interested in
        * @param value the new value for the specified bits
        * @return the value of holder with the bits from the value
  
  
  
  1.15      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/BooleanUtils.java
  
  Index: BooleanUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/BooleanUtils.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- BooleanUtils.java	22 Aug 2003 17:25:33 -0000	1.14
  +++ BooleanUtils.java	7 Sep 2003 14:32:34 -0000	1.15
  @@ -668,7 +668,7 @@
           try {
               primitive = ArrayUtils.toPrimitive(array);
           } catch (NullPointerException ex) {
  -            throw new IllegalArgumentException("The array must not conatin any null elements");
  +            throw new IllegalArgumentException("The array must not contain any null elements");
           }
           return (xor(primitive) ? Boolean.TRUE : Boolean.FALSE);
       }
  
  
  
  1.16      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/CharRange.java
  
  Index: CharRange.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/CharRange.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- CharRange.java	22 Aug 2003 17:25:33 -0000	1.15
  +++ CharRange.java	7 Sep 2003 14:32:34 -0000	1.16
  @@ -234,7 +234,7 @@
       }
   
       /**
  -     * <p>Gets a hashCode compatable with the equals method.</p>
  +     * <p>Gets a hashCode compatible with the equals method.</p>
        * 
        * @return a suitable hashCode
        */
  
  
  
  1.21      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/CharSet.java
  
  Index: CharSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/CharSet.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- CharSet.java	22 Aug 2003 17:25:33 -0000	1.20
  +++ CharSet.java	7 Sep 2003 14:32:34 -0000	1.21
  @@ -296,7 +296,7 @@
       }
   
       /**
  -     * <p>Gets a hashCode compatable with the equals method.</p>
  +     * <p>Gets a hashCode compatible with the equals method.</p>
        *
        * @return a suitable hashCode
        * @since 2.0
  
  
  
  1.27      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/CharSetUtils.java
  
  Index: CharSetUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/CharSetUtils.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- CharSetUtils.java	22 Aug 2003 17:25:33 -0000	1.26
  +++ CharSetUtils.java	7 Sep 2003 14:32:34 -0000	1.27
  @@ -113,7 +113,7 @@
       // Squeeze
       //-----------------------------------------------------------------------
       /**
  -     * <p>Squeezes any repititions of a character that is mentioned in the
  +     * <p>Squeezes any repetitions of a character that is mentioned in the
        * supplied set.</p>
        *
        * <pre>
  @@ -140,7 +140,7 @@
       }
   
       /**
  -     * <p>Squeezes any repititions of a character that is mentioned in the
  +     * <p>Squeezes any repetitions of a character that is mentioned in the
        * supplied set.</p>
        *
        * <p>An example is:</p>
  
  
  
  1.22      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/ClassUtils.java
  
  Index: ClassUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/ClassUtils.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ClassUtils.java	22 Aug 2003 17:25:33 -0000	1.21
  +++ ClassUtils.java	7 Sep 2003 14:32:34 -0000	1.22
  @@ -236,7 +236,7 @@
        * class and its superclasses.</p>
        *
        * <p>The order is determined by looking through each interface in turn as
  -     * declared in the source file and following its hieracrchy up. Then each 
  +     * declared in the source file and following its hierarchy up. Then each 
        * superclass is considered in the same way. Later duplicates are ignored, 
        * so the order is maintained.</p>
        * 
  @@ -386,7 +386,7 @@
        *
        * <p>This method calls {@link #isAssignable(Class, Class) isAssignable} for each
        * Class pair in the input arrays. It can be used to check if a set of arguments
  -     * (the first parameter) are suitably compatable with a set of method parameter types
  +     * (the first parameter) are suitably compatible with a set of method parameter types
        * (the second parameter).</p>
        *
        * <p>Unlike the {@link Class#isAssignableFrom(java.lang.Class)} method, this
  
  
  
  1.14      +4 -4      jakarta-commons/lang/src/java/org/apache/commons/lang/Entities.java
  
  Index: Entities.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/Entities.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Entities.java	18 Aug 2003 02:22:22 -0000	1.13
  +++ Entities.java	7 Sep 2003 14:32:34 -0000	1.14
  @@ -283,9 +283,9 @@
           {"ni", "8715"}, //contains as member, U+220B ISOtech -->
   // <!-- should there be a more memorable name than 'ni'? -->
           {"prod", "8719"}, //n-ary product = product sign,U+220F ISOamsb -->
  -// <!-- prod is NOT the same character as U+03A0 'greek capital letter pi' thoughthe same glyph might be used for both -->
  -        {"sum", "8721"}, //n-ary sumation, U+2211 ISOamsb -->
  -// <!-- sum is NOT the same character as U+03A3 'greek capital letter sigma'though the same glyph might be used for both -->
  +// <!-- prod is NOT the same character as U+03A0 'greek capital letter pi' though the same glyph might be used for both -->
  +        {"sum", "8721"}, //n-ary summation, U+2211 ISOamsb -->
  +// <!-- sum is NOT the same character as U+03A3 'greek capital letter sigma' though the same glyph might be used for both -->
           {"minus", "8722"}, //minus sign, U+2212 ISOtech -->
           {"lowast", "8727"}, //asterisk operator, U+2217 ISOtech -->
           {"radic", "8730"}, //square root = radical sign,U+221A ISOtech -->
  
  
  
  1.5       +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/NotImplementedException.java
  
  Index: NotImplementedException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/NotImplementedException.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- NotImplementedException.java	18 Aug 2003 02:22:23 -0000	1.4
  +++ NotImplementedException.java	7 Sep 2003 14:32:34 -0000	1.5
  @@ -63,7 +63,7 @@
   public class NotImplementedException extends UnsupportedOperationException {
   
       /**
  -     * <p>Constructes the exception with the specified class.</p>
  +     * <p>Constructs the exception with the specified class.</p>
        * 
        * @param clazz  the <code>Class</code> that has not implemented the method
        */
  
  
  
  1.15      +7 -7      jakarta-commons/lang/src/java/org/apache/commons/lang/NumberUtils.java
  
  Index: NumberUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/NumberUtils.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- NumberUtils.java	18 Aug 2003 02:22:23 -0000	1.14
  +++ NumberUtils.java	7 Sep 2003 14:32:34 -0000	1.15
  @@ -156,7 +156,7 @@
        *
        * <p>First, the value is examined for a type qualifier on the end
        * (<code>'f','F','d','D','l','L'</code>).  If it is found, it starts 
  -     * trying to create succissively larger types from the type specified
  +     * trying to create successively larger types from the type specified
        * until one is found that can hold the value.</p>
        *
        * <p>If a type specifier is not found, it will check for a decimal point
  @@ -246,7 +246,7 @@
                           Float f = NumberUtils.createFloat(numeric);
                           if (!(f.isInfinite() || (f.floatValue() == 0.0F && !allZeros))) {
                               //If it's too big for a float or the float value = 0 and the string
  -                            //has non-zeros in it, then float doens't have the presision we want
  +                            //has non-zeros in it, then float does not have the precision we want
                               return f;
                           }
   
  @@ -501,7 +501,7 @@
        *  <li>NaN
        *  <li>Positive infinity
        *  <li>Maximum double
  -     *  <li>Normal positve numbers
  +     *  <li>Normal positive numbers
        *  <li>+0.0
        *  <li>-0.0
        *  <li>Normal negative numbers
  @@ -550,7 +550,7 @@
       /**
        * <p>Compares two floats for order.</p>
        *
  -     * <p>This method is more comprhensive than the standard Java greater than,
  +     * <p>This method is more comprehensive than the standard Java greater than,
        * less than and equals operators.</p>
        * <ul>
        *  <li>It returns <code>-1</code> if the first value is less than the second.
  @@ -563,7 +563,7 @@
        * <li>NaN
        * <li>Positive infinity
        * <li>Maximum float
  -     * <li>Normal positve numbers
  +     * <li>Normal positive numbers
        * <li>+0.0
        * <li>-0.0
        * <li>Normal negative numbers
  @@ -730,7 +730,7 @@
               }
               if (chars[i] == 'l'
                   || chars[i] == 'L') {
  -                // not allowing L with an exponoent
  +                // not allowing L with an exponent
                   return foundDigit && !hasExp;
               }
               // last character is illegal
  
  
  
  1.22      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/ObjectUtils.java
  
  Index: ObjectUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/ObjectUtils.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ObjectUtils.java	22 Aug 2003 17:25:33 -0000	1.21
  +++ ObjectUtils.java	7 Sep 2003 14:32:34 -0000	1.22
  @@ -271,7 +271,7 @@
        * cannot be stored.</p>
        */
       public static class Null implements Serializable {
  -        // declare serialization compatability with Commons Lang 1.0
  +        // declare serialization compatibility with Commons Lang 1.0
           private static final long serialVersionUID = 7092611880189329093L;
           
           /**
  
  
  
  1.25      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/RandomStringUtils.java
  
  Index: RandomStringUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/RandomStringUtils.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- RandomStringUtils.java	22 Aug 2003 17:25:33 -0000	1.24
  +++ RandomStringUtils.java	7 Sep 2003 14:32:34 -0000	1.25
  @@ -167,7 +167,7 @@
        * @param count  the length of random string to create
        * @param letters  if <code>true</code>, generated string will include
        *  alphabetic characters
  -     * @param numbers  if <code>true</code>, generatd string will include
  +     * @param numbers  if <code>true</code>, generated string will include
        *  numeric characters
        * @return the random string
        */
  
  
  
  1.26      +6 -6      jakarta-commons/lang/src/java/org/apache/commons/lang/StringEscapeUtils.java
  
  Index: StringEscapeUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringEscapeUtils.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- StringEscapeUtils.java	18 Aug 2003 02:22:23 -0000	1.25
  +++ StringEscapeUtils.java	7 Sep 2003 14:32:34 -0000	1.26
  @@ -128,7 +128,7 @@
        * @param out  Writer to write escaped string into
        * @param str  String to escape values in, may be null
        * @throws IllegalArgumentException if the Writer is <code>null</code>
  -     * @throws IOException if error occurs on undelying Writer
  +     * @throws IOException if error occurs on underlying Writer
        */
       public static void escapeJava(Writer out, String str) throws IOException {
           escapeJavaStyleString(out, str, false);
  @@ -169,7 +169,7 @@
        * @param out  Writer to write escaped string into
        * @param str  String to escape values in, may be null
        * @throws IllegalArgumentException if the Writer is <code>null</code>
  -     * @throws IOException if error occurs on undelying Writer
  +     * @throws IOException if error occurs on underlying Writer
        **/
       public static void escapeJavaScript(Writer out, String str) throws IOException {
           escapeJavaStyleString(out, str, true);
  @@ -309,7 +309,7 @@
        * @param out  the <code>Writer</code> used to output unescaped characters
        * @param str  the <code>String</code> to unescape, may be null
        * @throws IllegalArgumentException if the Writer is <code>null</code>
  -     * @throws IOException if error occurs on undelying Writer
  +     * @throws IOException if error occurs on underlying Writer
        */
       public static void unescapeJava(Writer out, String str) throws IOException {
           if (out == null) {
  @@ -330,7 +330,7 @@
                   unicode.append(ch);
                   if (unicode.length() == 4) {
                       // unicode now contains the four hex digits
  -                    // which represents our unicode chacater
  +                    // which represents our unicode character
                       try {
                           int value = Integer.parseInt(unicode.toString(), 16);
                           out.write((char) value);
  @@ -424,7 +424,7 @@
        * @param out  the <code>Writer</code> used to output unescaped characters
        * @param str  the <code>String</code> to unescape, may be null
        * @throws IllegalArgumentException if the Writer is <code>null</code>
  -     * @throws IOException if error occurs on undelying Writer
  +     * @throws IOException if error occurs on underlying Writer
        */
       public static void unescapeJavaScript(Writer out, String str) throws IOException {
           unescapeJava(out, str);
  
  
  
  1.109     +18 -18    jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java
  
  Index: StringUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -r1.108 -r1.109
  --- StringUtils.java	4 Sep 2003 18:18:18 -0000	1.108
  +++ StringUtils.java	7 Sep 2003 14:32:34 -0000	1.109
  @@ -89,7 +89,7 @@
    *  <li><b>UpperCase/LowerCase/SwapCase/Capitalize/Uncapitalize</b>
    *      - changes the case of a String</li>
    *  <li><b>CountMatches</b>
  - *      - counts the number of occurrances of one String in another</li>
  + *      - counts the number of occurrences of one String in another</li>
    *  <li><b>IsAlpha/IsNumeric/IsWhitespace</b>
    *      - checks the characters in a String</li>
    *  <li><b>DefaultString</b>
  @@ -1518,7 +1518,7 @@
        * characters from the end of the String.</p>
        *
        * <p>The returned substring starts with the character in the <code>start</code>
  -     * position and ends before the <code>end</code> position. All postion counting is 
  +     * position and ends before the <code>end</code> position. All position counting is 
        * zero-based -- i.e., to start at the beginning of the string use 
        * <code>start = 0</code>. Negative start and end positions can be used to 
        * specify offsets relative to the end of the String.</p>
  @@ -1693,7 +1693,7 @@
       // SubStringAfter/SubStringBefore
       //-----------------------------------------------------------------------
       /**
  -     * <p>Gets the substring before the first occurance of a separator.
  +     * <p>Gets the substring before the first occurrence of a separator.
        * The separator is not returned.</p>
        *
        * <p>A <code>null</code> string input will return <code>null</code>.
  @@ -1713,7 +1713,7 @@
        *
        * @param str  the String to get a substring from, may be null
        * @param separator  the String to search for, may be null
  -     * @return the substring before the first occurance of the separator,
  +     * @return the substring before the first occurrence of the separator,
        *  <code>null</code> if null String input
        * @since 2.0
        */
  @@ -1732,7 +1732,7 @@
       }
   
       /**
  -     * <p>Gets the substring after the first occurance of a separator.
  +     * <p>Gets the substring after the first occurrence of a separator.
        * The separator is not returned.</p>
        *
        * <p>A <code>null</code> string input will return <code>null</code>.
  @@ -1753,7 +1753,7 @@
        *
        * @param str  the String to get a substring from, may be null
        * @param separator  the String to search for, may be null
  -     * @return the substring after the first occurance of the separator,
  +     * @return the substring after the first occurrence of the separator,
        *  <code>null</code> if null String input
        * @since 2.0
        */
  @@ -1772,7 +1772,7 @@
       }
   
       /**
  -     * <p>Gets the substring before the last occurance of a separator.
  +     * <p>Gets the substring before the last occurrence of a separator.
        * The separator is not returned.</p>
        *
        * <p>A <code>null</code> string input will return <code>null</code>.
  @@ -1792,7 +1792,7 @@
        *
        * @param str  the String to get a substring from, may be null
        * @param separator  the String to search for, may be null
  -     * @return the substring before the last occurance of the separator,
  +     * @return the substring before the last occurrence of the separator,
        *  <code>null</code> if null String input
        * @since 2.0
        */
  @@ -1808,7 +1808,7 @@
       }
   
       /**
  -     * <p>Gets the substring after the last occurance of a separator.
  +     * <p>Gets the substring after the last occurrence of a separator.
        * The separator is not returned.</p>
        *
        * <p>A <code>null</code> string input will return <code>null</code>.
  @@ -1830,7 +1830,7 @@
        *
        * @param str  the String to get a substring from, may be null
        * @param separator  the String to search for, may be null
  -     * @return the substring after the last occurance of the separator,
  +     * @return the substring after the last occurrence of the separator,
        *  <code>null</code> if null String input
        * @since 2.0
        */
  @@ -2481,7 +2481,7 @@
       }
   
       /**
  -     * <p>Replaces all occurances of a String within another String.</p>
  +     * <p>Replaces all occurrences of a String within another String.</p>
        *
        * <p>A <code>null</code> reference passed to this method is a no-op.</p>
        * 
  @@ -2554,7 +2554,7 @@
       // Replace, character based
       //-----------------------------------------------------------------------
       /**
  -     * <p>Replaces all occurrances of a character in a String with another.
  +     * <p>Replaces all occurrences of a character in a String with another.
        * This is a null-safe version of {@link String#replace(char, char)}.</p>
        *
        * <p>A <code>null</code> string input returns <code>null</code>.
  @@ -3507,7 +3507,7 @@
        * <p>Capitalizes a String changing the first letter to title case as
        * per {@link Character#toTitleCase(char)}. No other letters are changed.</p>
        * 
  -     * <p>For a word based alorithm, see {@link WordUtils#capitalize(String)}.
  +     * <p>For a word based algorithm, see {@link WordUtils#capitalize(String)}.
        * A <code>null</code> input String returns <code>null</code>.</p>
        * 
        * <pre>
  @@ -3551,7 +3551,7 @@
        * <p>Uncapitalizes a String changing the first letter to title case as
        * per {@link Character#toLowerCase(char)}. No other letters are changed.</p>
        * 
  -     * <p>For a word based alorithm, see {@link WordUtils#uncapitalize(String)}.
  +     * <p>For a word based algorithm, see {@link WordUtils#uncapitalize(String)}.
        * A <code>null</code> input String returns <code>null</code>.</p>
        * 
        * <pre>
  @@ -3601,7 +3601,7 @@
        *  <li>Lower case character converts to Upper case</li>
        * </ul>
        * 
  -     * <p>For a word based alorithm, see {@link WordUtils#swapCase(String)}.
  +     * <p>For a word based algorithm, see {@link WordUtils#swapCase(String)}.
        * A <code>null</code> input String returns <code>null</code>.</p>
        * 
        * <pre>
  @@ -3611,7 +3611,7 @@
        * </pre>
        * 
        * <p>NOTE: This method changed in Lang version 2.0.
  -     * It no longer performs a word based alorithm.
  +     * It no longer performs a word based algorithm.
        * If you only use ASCII, you will notice no change.
        * That functionality is available in WordUtils.</p>
        * 
  @@ -3675,7 +3675,7 @@
        *
        * @param str  the String to check, may be null
        * @param sub  the substring to count, may be null
  -     * @return the number of occurances, 0 if either String is <code>null</code>
  +     * @return the number of occurrences, 0 if either String is <code>null</code>
        */
       public static int countMatches(String str, String sub) {
           if (str == null || str.length() == 0 || sub == null || sub.length() == 0) {
  
  
  
  1.24      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/builder/CompareToBuilder.java
  
  Index: CompareToBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/CompareToBuilder.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- CompareToBuilder.java	23 Aug 2003 00:21:49 -0000	1.23
  +++ CompareToBuilder.java	7 Sep 2003 14:32:34 -0000	1.24
  @@ -495,7 +495,7 @@
        * <p>Appends to the <code>builder</code> the comparison of
        * two <code>double</code>s.</p>
        *
  -     * <p>This handles NaNs, Infinties, and <code>-0.0</code>.</p>
  +     * <p>This handles NaNs, Infinities, and <code>-0.0</code>.</p>
        *
        * <p>It is compatible with the hash code generated by
        * <code>HashCodeBuilder</code>.</p>
  @@ -516,7 +516,7 @@
        * <p>Appends to the <code>builder</code> the comparison of
        * two <code>float</code>s.</p>
        *
  -     * <p>This handles NaNs, Infinties, and <code>-0.0</code>.</p>
  +     * <p>This handles NaNs, Infinities, and <code>-0.0</code>.</p>
        *
        * <p>It is compatible with the hash code generated by
        * <code>HashCodeBuilder</code>.</p>
  
  
  
  1.21      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
  
  Index: EqualsBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/EqualsBuilder.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- EqualsBuilder.java	23 Aug 2003 00:21:49 -0000	1.20
  +++ EqualsBuilder.java	7 Sep 2003 14:32:34 -0000	1.21
  @@ -433,7 +433,7 @@
        * <p>Test if two <code>double</code>s are equal by testing that the
        * pattern of bits returned by <code>doubleToLong</code> are equal.</p>
        *
  -     * <p>This handles NaNs, Infinties, and <code>-0.0</code>.</p>
  +     * <p>This handles NaNs, Infinities, and <code>-0.0</code>.</p>
        *
        * <p>It is compatible with the hash code generated by
        * <code>HashCodeBuilder</code>.</p>
  @@ -453,7 +453,7 @@
        * <p>Test if two <code>float</code>s are equal byt testing that the
        * pattern of bits returned by doubleToLong are equal.</p>
        *
  -     * <p>This handles NaNs, Infinties, and <code>-0.0</code>.</p>
  +     * <p>This handles NaNs, Infinities, and <code>-0.0</code>.</p>
        *
        * <p>It is compatible with the hash code generated by
        * <code>HashCodeBuilder</code>.</p>
  
  
  
  1.11      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
  
  Index: ReflectionToStringBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ReflectionToStringBuilder.java	23 Aug 2003 00:21:49 -0000	1.10
  +++ ReflectionToStringBuilder.java	7 Sep 2003 14:32:34 -0000	1.11
  @@ -525,7 +525,7 @@
       }
   
       /**
  -     * <p>Unegisters this builder's source object to avoid infinite
  +     * <p>Unregisters this builder's source object to avoid infinite
        * loops when processing circular object references.</p>
        */
       void unregisterObject() {
  
  
  
  1.22      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java
  
  Index: Enum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Enum.java	21 Aug 2003 15:52:55 -0000	1.21
  +++ Enum.java	7 Sep 2003 14:32:34 -0000	1.22
  @@ -224,7 +224,7 @@
    */
   public abstract class Enum implements Comparable, Serializable {
   
  -    /** Lang version 1.0.1 serial compatability */
  +    /** Lang version 1.0.1 serial compatibility */
       private static final long serialVersionUID = -487045951170455942L;
       
       // After discussion, the default size for HashMaps is used, as the
  
  
  
  1.14      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/enum/ValuedEnum.java
  
  Index: ValuedEnum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/enum/ValuedEnum.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ValuedEnum.java	18 Aug 2003 02:22:24 -0000	1.13
  +++ ValuedEnum.java	7 Sep 2003 14:32:34 -0000	1.14
  @@ -137,7 +137,7 @@
    */
   public abstract class ValuedEnum extends Enum {
       
  -    /** Lang version 1.0.1 serial compatability */
  +    /** Lang version 1.0.1 serial compatibility */
       private static final long serialVersionUID = -7129650521543789085L;
       
       /**
  
  
  
  1.35      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java
  
  Index: ExceptionUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- ExceptionUtils.java	21 Aug 2003 15:52:55 -0000	1.34
  +++ ExceptionUtils.java	7 Sep 2003 14:32:35 -0000	1.35
  @@ -656,7 +656,7 @@
        * <code>Throwable</code> object, decomposing it into a list of
        * stack frames.</p>
        *
  -     * @param throwable  the <code>Throwable</code> to exaamine, may be null
  +     * @param throwable  the <code>Throwable</code> to examine, may be null
        * @return an array of strings describing each stack frame, never null
        */
       public static String[] getStackFrames(Throwable throwable) {
  
  
  
  1.10      +4 -4      jakarta-commons/lang/src/java/org/apache/commons/lang/exception/Nestable.java
  
  Index: Nestable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/Nestable.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Nestable.java	18 Aug 2003 02:22:24 -0000	1.9
  +++ Nestable.java	7 Sep 2003 14:32:35 -0000	1.10
  @@ -88,7 +88,7 @@
   
       /**
        * Returns the error message of the <code>Throwable</code> in the chain
  -     * of <code>Throwable</code>s at the specified index, numbererd from 0.
  +     * of <code>Throwable</code>s at the specified index, numbered from 0.
        *
        * @param index the index of the <code>Throwable</code> in the chain of
        * <code>Throwable</code>s
  @@ -114,7 +114,7 @@
   
       /**
        * Returns the <code>Throwable</code> in the chain of
  -     * <code>Throwable</code>s at the specified index, numbererd from 0.
  +     * <code>Throwable</code>s at the specified index, numbered from 0.
        *
        * @param index the index, numbered from 0, of the <code>Throwable</code> in
        * the chain of <code>Throwable</code>s
  @@ -181,7 +181,7 @@
   
       /**
        * Prints the stack trace of this exception to the specified print
  -     * stream.  Includes inforamation from the exception, if any,
  +     * stream.  Includes information from the exception, if any,
        * which caused this exception.
        *
        * @param out <code>PrintStream</code> to use for output.
  
  
  
  1.21      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableDelegate.java
  
  Index: NestableDelegate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableDelegate.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- NestableDelegate.java	23 Aug 2003 00:41:29 -0000	1.20
  +++ NestableDelegate.java	7 Sep 2003 14:32:35 -0000	1.21
  @@ -129,7 +129,7 @@
   
       /**
        * Returns the error message of the <code>Throwable</code> in the chain
  -     * of <code>Throwable</code>s at the specified index, numbererd from 0.
  +     * of <code>Throwable</code>s at the specified index, numbered from 0.
        *
        * @param index the index of the <code>Throwable</code> in the chain of
        * <code>Throwable</code>s
  @@ -207,7 +207,7 @@
   
       /**
        * Returns the <code>Throwable</code> in the chain of
  -     * <code>Throwable</code>s at the specified index, numbererd from 0.
  +     * <code>Throwable</code>s at the specified index, numbered from 0.
        *
        * @param index the index, numbered from 0, of the <code>Throwable</code> in
        * the chain of <code>Throwable</code>s
  
  
  
  1.10      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableException.java
  
  Index: NestableException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableException.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- NestableException.java	18 Aug 2003 02:22:24 -0000	1.9
  +++ NestableException.java	7 Sep 2003 14:32:35 -0000	1.10
  @@ -63,7 +63,7 @@
    * about the exception which was caught and provoked throwing the
    * current exception. Catching and rethrowing may occur multiple
    * times, and provided that all exceptions except the first one
  - * are descendands of <code>NestedException</code>, when the
  + * are descendants of <code>NestedException</code>, when the
    * exception is finally printed out using any of the <code>
    * printStackTrace()</code> methods, the stacktrace will contain
    * the information about all exceptions thrown and caught on
  
  
  
  1.12      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/math/Fraction.java
  
  Index: Fraction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/math/Fraction.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Fraction.java	18 Aug 2003 02:22:24 -0000	1.11
  +++ Fraction.java	7 Sep 2003 14:32:35 -0000	1.12
  @@ -625,7 +625,7 @@
        * <p>Multiplies the value of this fraction by another, returning the result 
        * in reduced form.</p>
        *
  -     * @param fraction  the fraction to multipy by, must not be <code>null</code>
  +     * @param fraction  the fraction to multiply by, must not be <code>null</code>
        * @return a <code>Fraction</code> instance with the resulting values
        * @throws IllegalArgumentException if the fraction is <code>null</code>
        * @throws ArithmeticException if the resulting numerator or denominator exceeds
  
  
  
  1.13      +6 -6      jakarta-commons/lang/src/java/org/apache/commons/lang/math/NumberUtils.java
  
  Index: NumberUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/math/NumberUtils.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- NumberUtils.java	5 Sep 2003 15:55:09 -0000	1.12
  +++ NumberUtils.java	7 Sep 2003 14:32:35 -0000	1.13
  @@ -405,7 +405,7 @@
                           Float f = NumberUtils.createFloat(numeric);
                           if (!(f.isInfinite() || (f.floatValue() == 0.0F && !allZeros))) {
                               //If it's too big for a float or the float value = 0 and the string
  -                            //has non-zeros in it, then float doens't have the presision we want
  +                            //has non-zeros in it, then float does not have the precision we want
                               return f;
                           }
   
  @@ -1097,7 +1097,7 @@
        *  <li>NaN
        *  <li>Positive infinity
        *  <li>Maximum double
  -     *  <li>Normal positve numbers
  +     *  <li>Normal positive numbers
        *  <li>+0.0
        *  <li>-0.0
        *  <li>Normal negative numbers
  @@ -1146,7 +1146,7 @@
       /**
        * <p>Compares two floats for order.</p>
        *
  -     * <p>This method is more comprhensive than the standard Java greater than,
  +     * <p>This method is more comprehensive than the standard Java greater than,
        * less than and equals operators.</p>
        * <ul>
        *  <li>It returns <code>-1</code> if the first value is less than the second.
  @@ -1159,7 +1159,7 @@
        * <li>NaN
        * <li>Positive infinity
        * <li>Maximum float
  -     * <li>Normal positve numbers
  +     * <li>Normal positive numbers
        * <li>+0.0
        * <li>-0.0
        * <li>Normal negative numbers
  @@ -1325,7 +1325,7 @@
               }
               if (chars[i] == 'l'
                   || chars[i] == 'L') {
  -                // not allowing L with an exponoent
  +                // not allowing L with an exponent
                   return foundDigit && !hasExp;
               }
               // last character is illegal
  
  
  
  1.4       +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/FieldUtils.java
  
  Index: FieldUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/FieldUtils.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FieldUtils.java	18 Aug 2003 02:22:25 -0000	1.3
  +++ FieldUtils.java	7 Sep 2003 14:32:35 -0000	1.4
  @@ -86,7 +86,7 @@
       // -------------------------------------------------------------------------
       
       /**
  -     * <p>Gets an accessible <code>Field</code> by name repecting scope.
  +     * <p>Gets an accessible <code>Field</code> by name respecting scope.
        * Superclasses/interfaces will be considered.</p>
        *
        * @param cls  the class to reflect, must not be <code>null</code>
  
  
  
  1.16      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/MethodUtils.java
  
  Index: MethodUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/MethodUtils.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- MethodUtils.java	18 Aug 2003 02:22:25 -0000	1.15
  +++ MethodUtils.java	7 Sep 2003 14:32:35 -0000	1.16
  @@ -252,9 +252,9 @@
                   // modifer is public.
                   //
                   // The following workaround solves the problem but will only
  -                // work from sufficiently privilages code. 
  +                // work from sufficiently privileges code. 
                   //
  -                // Better workarounds would be greatfully accepted.
  +                // Better workarounds would be gratefully accepted.
                   //
                   if (ReflectionUtils.isPublicScope(method)) {
                       method.setAccessible(true);
  
  
  
  1.11      +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/ReflectionUtils.java
  
  Index: ReflectionUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/ReflectionUtils.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ReflectionUtils.java	18 Aug 2003 02:22:25 -0000	1.10
  +++ ReflectionUtils.java	7 Sep 2003 14:32:35 -0000	1.11
  @@ -234,7 +234,7 @@
        * @param parameterType the type of parameter accepted by the method
        * @param requestedType the type of parameter being requested 
        *
  -     * @return <code>true</code> if the assignement is compatible.
  +     * @return <code>true</code> if the assignment is compatible.
        */
       public static boolean isCompatible(Class requestedType, Class parameterType) {
           // try plain assignment
  
  
  
  1.8       +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateFormatUtils.java
  
  Index: DateFormatUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateFormatUtils.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DateFormatUtils.java	18 Aug 2003 02:22:25 -0000	1.7
  +++ DateFormatUtils.java	7 Sep 2003 14:32:35 -0000	1.8
  @@ -58,7 +58,7 @@
   import java.util.TimeZone;
   
   /**
  - * <p>Date and time formatting utilites and constants.</p>
  + * <p>Date and time formatting utilities and constants.</p>
    *
    * <p>Formatting is performed using the
    * {@link org.apache.commons.lang.time.FastDateFormat} class.</p>
  @@ -74,7 +74,7 @@
   public class DateFormatUtils {
   
       /**
  -     * ISO8601 formatter for date-time witout time zone.
  +     * ISO8601 formatter for date-time without time zone.
        * The format used is <tt>yyyy-MM-dd'T'HH:mm:ss</tt>.
        */
       public static final FastDateFormat ISO_DATETIME_FORMAT
  
  
  
  1.6       +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/time/DurationFormatUtils.java
  
  Index: DurationFormatUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/DurationFormatUtils.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DurationFormatUtils.java	18 Aug 2003 02:22:25 -0000	1.5
  +++ DurationFormatUtils.java	7 Sep 2003 14:32:35 -0000	1.6
  @@ -54,7 +54,7 @@
   package org.apache.commons.lang.time;
   
   /**
  - * <p>Duration formatting utilites and constants.</p>
  + * <p>Duration formatting utilities and constants.</p>
    *
    * @author Apache Ant - DateUtils
    * @author <a href="mailto:sbailliez@apache.org">Stephane Bailliez</a>
  
  
  
  1.16      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java
  
  Index: FastDateFormat.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- FastDateFormat.java	18 Aug 2003 02:22:25 -0000	1.15
  +++ FastDateFormat.java	7 Sep 2003 14:32:35 -0000	1.16
  @@ -89,7 +89,7 @@
    *
    * <p>In addition, the pattern <code>'ZZ'</code> has been made to represent
    * ISO8601 full format time zones (eg. <code>+08:00</code> or <code>-11:00</code>).
  - * This introduces a minor incompatability with Java 1.4, but at a gain of
  + * This introduces a minor incompatibility with Java 1.4, but at a gain of
    * useful functionality.</p>
    *
    * @author TeaTrove project
  @@ -854,7 +854,7 @@
       /**
        * <p>A suitable hashcode.</p>
        * 
  -     * @return a hashcode compatable with equals
  +     * @return a hashcode compatible with equals
        */
       public int hashCode() {
           int total = 0;
  
  
  
  1.7       +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/time/StopWatch.java
  
  Index: StopWatch.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/StopWatch.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StopWatch.java	18 Aug 2003 02:22:25 -0000	1.6
  +++ StopWatch.java	7 Sep 2003 14:32:35 -0000	1.7
  @@ -130,7 +130,7 @@
        * <p>Split the time.</p>
        * 
        * <p>This method sets the stop time of the watch to allow a time to be extracted.
  -     * The start time is unaffected, enabling {@link #unsplit()} to contine the 
  +     * The start time is unaffected, enabling {@link #unsplit()} to continue the 
        * timing from the original start point.</p>
        */
       public void split() {
  
  
  
  1.12      +2 -2      jakarta-commons/lang/src/test/org/apache/commons/lang/RandomStringUtilsTest.java
  
  Index: RandomStringUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/RandomStringUtilsTest.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- RandomStringUtilsTest.java	18 Aug 2003 02:22:25 -0000	1.11
  +++ RandomStringUtilsTest.java	7 Sep 2003 14:32:35 -0000	1.12
  @@ -342,7 +342,7 @@
       /**
        * Computes Chi-Square statistic given observed and expected counts
        * @param observed array of observed frequency counts
  -     * @param expected array of exptected frequency counts
  +     * @param expected array of expected frequency counts
        */
       private double chiSquare(int[] expected, int[] observed) {
           double sumSq = 0.0d;
  
  
  
  1.6       +2 -2      jakarta-commons/lang/src/test/org/apache/commons/lang/math/RandomUtilsTest.java
  
  Index: RandomUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/math/RandomUtilsTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RandomUtilsTest.java	18 Aug 2003 02:22:27 -0000	1.5
  +++ RandomUtilsTest.java	7 Sep 2003 14:32:35 -0000	1.6
  @@ -319,7 +319,7 @@
       /**
        * Computes Chi-Square statistic given observed and expected counts
        * @param observed array of observed frequency counts
  -     * @param expected array of exptected frequency counts
  +     * @param expected array of expected frequency counts
        */
       private double chiSquare(int[] expected, int[] observed) {
           double sumSq = 0.0d;
  
  
  
  1.7       +3 -3      jakarta-commons/lang/src/test/org/apache/commons/lang/reflect/MethodUtilsTestCase.java
  
  Index: MethodUtilsTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/reflect/MethodUtilsTestCase.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MethodUtilsTestCase.java	18 Aug 2003 02:22:28 -0000	1.6
  +++ MethodUtilsTestCase.java	7 Sep 2003 14:32:35 -0000	1.7
  @@ -183,7 +183,7 @@
   
           } catch (Throwable t) {
               // ONE
  -            fail("Exception in method ONE prevented invokation: " + t.toString());
  +            fail("Exception in method ONE prevented invocation: " + t.toString());
           }
   
           // trickier this one - find a method in a direct interface
  @@ -200,7 +200,7 @@
   
           } catch (Throwable t) {
               // METHOD TWO FAILURE
  -            fail("Exception in method TWO prevented invokation: " + t.toString());
  +            fail("Exception in method TWO prevented invocation: " + t.toString());
           }
   
   
  @@ -220,7 +220,7 @@
   
           } catch (Throwable t) {
               // METHOD THREE FAILURE
  -            fail("Exception in method THREE prevented invokation: " + t.toString());
  +            fail("Exception in method THREE prevented invocation: " + t.toString());
   
           }
       }