You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/10/24 02:50:53 UTC
svn commit: r1401523 - in /commons/proper/lang/trunk/src: changes/
main/java/org/apache/commons/lang3/
main/java/org/apache/commons/lang3/exception/
main/java/org/apache/commons/lang3/math/
main/java/org/apache/commons/lang3/text/ main/java/org/apache/...
Author: ggregory
Date: Wed Oct 24 00:50:52 2012
New Revision: 1401523
URL: http://svn.apache.org/viewvc?rev=1401523&view=rev
Log:
[LANG-845] Spelling fixes.
Modified:
commons/proper/lang/trunk/src/changes/changes.xml
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/StopWatch.java
commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt
commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-2.0.txt
commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-3.0.txt
commons/proper/lang/trunk/src/site/xdoc/developerguide.xml
commons/proper/lang/trunk/src/site/xdoc/mail-lists.xml
commons/proper/lang/trunk/src/site/xdoc/upgradeto2_0.xml
commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml
commons/proper/lang/trunk/src/site/xdoc/userguide.xml
Modified: commons/proper/lang/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml Wed Oct 24 00:50:52 2012
@@ -22,6 +22,7 @@
<body>
<release version="3.2" date="TBA" description="Next release">
+ <action issue="LANG-845" type="fix">Spelling fixes</action>
<action issue="LANG-844" type="fix">Fix examples contained in javadoc of StringUtils.center methods</action>
<action issue="LANG-841" type="add">Add StringUtils API to call String.replaceAll in DOTALL a.k.a. single-line mode</action>
<action issue="LANG-839" type="update">ArrayUtils removeElements methods use unnecessary HashSet</action>
@@ -212,7 +213,7 @@
<action type="fix" issue="LANG-369">ExceptionUtils not thread-safe.</action>
<action type="add" issue="LANG-358">ObjectUtils.coalesce.</action>
<action type="update" issue="LANG-355">StrBuilder should implement CharSequence and Appendable.</action>
- <action type="fix" issue="LANG-339">StringEscapeUtils.escapeHtml() escapes multibyte characters like Chinese, Japanes, etc.</action>
+ <action type="fix" issue="LANG-339">StringEscapeUtils.escapeHtml() escapes multibyte characters like Chinese, Japanese, etc.</action>
<action type="update" issue="LANG-336">Finally start using generics.</action>
<action type="fix" issue="LANG-302">StrBuilder does not implement clone().</action>
<action type="update" issue="LANG-290">EnumUtils for JDK 5.0.</action>
@@ -547,7 +548,7 @@
<action type="fix" issue="LANG-35">Should ToStringBuilder.reflectionToString handle arrays?.</action>
<action type="fix" issue="LANG-83">EnumUtils nit: The import java.io.Serializable is never used.</action>
<action type="fix" issue="LANG-12">Example in Javadoc for ToStringBuilder wrong for append.</action>
- <action type="fix" issue="LANG-110">Added class hierachy support to HashCodeBuilder.reflectionHashCode().</action>
+ <action type="fix" issue="LANG-110">Added class hierarchy support to HashCodeBuilder.reflectionHashCode().</action>
<action type="fix" issue="LANG-71">ExceptionUtils new methods.</action>
<action type="fix" issue="LANG-15">Infinite loop in StringUtils.replace(text, repl, with) + FIX.</action>
<action type="fix" issue="LANG-93">StackOverflow due to ToStringBuilder.</action>
@@ -579,7 +580,7 @@
<action type="add" issue="LANG-231">Resurrect the WordWrapUtils from commons-sandbox/utils.</action>
<action type="fix" issue="LANG-139">EnumTest fails on Linux Sun JDK 1.3.0.</action>
<action type="add" issue="LANG-234">What to do with FastDateFormat unused private constructors.</action>
- <action type="add" issue="LANG-240">Added class hierachy support to CompareToBuilder.reflectionCompare().</action>
+ <action type="add" issue="LANG-240">Added class hierarchy support to CompareToBuilder.reflectionCompare().</action>
<action type="add" issue="LANG-190">Removed compile warning in FastDateFormat.</action>
<action type="fix" issue="LANG-97">typo in the Javadoc example code.</action>
<action type="add" issue="LANG-249">MethodUtils: Removed unused code/unused local vars.</action>
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java Wed Oct 24 00:50:52 2012
@@ -1362,7 +1362,7 @@ public class ArrayUtils {
*
* @param array the array to retrieve the length from, may be null
* @return The length of the array, or {@code 0} if the array is {@code null}
- * @throws IllegalArgumentException if the object arguement is not an array.
+ * @throws IllegalArgumentException if the object argument is not an array.
* @since 2.1
*/
public static int getLength(Object array) {
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ClassUtils.java Wed Oct 24 00:50:52 2012
@@ -905,7 +905,7 @@ public class ClassUtils {
* @param parameterTypes the list of parameters
* @return the method
* @throws NullPointerException if the class is null
- * @throws SecurityException if a a security violation occured
+ * @throws SecurityException if a security violation occurred
* @throws NoSuchMethodException if the method is not found in the given class
* or if the metothod doen't conform with the requirements
*/
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java Wed Oct 24 00:50:52 2012
@@ -381,7 +381,7 @@ public class ExceptionUtils {
* negative treated as zero, larger than chain size returns -1
* @param subclass if <code>true</code>, compares with {@link Class#isAssignableFrom(Class)}, otherwise compares
* using references
- * @return index of the <code>type</code> within throwables nested withing the specified <code>throwable</code>
+ * @return index of the <code>type</code> within throwables nested within the specified <code>throwable</code>
*/
private static int indexOf(Throwable throwable, Class<?> type, int fromIndex, boolean subclass) {
if (throwable == null || type == null) {
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java Wed Oct 24 00:50:52 2012
@@ -922,7 +922,7 @@ public final class Fraction extends Numb
* <p>Gets the fraction as a proper <code>String</code> in the format X Y/Z.</p>
*
* <p>The format used in '<i>wholeNumber</i> <i>numerator</i>/<i>denominator</i>'.
- * If the whole number is zero it will be ommitted. If the numerator is zero,
+ * If the whole number is zero it will be omitted. If the numerator is zero,
* only the whole number is returned.</p>
*
* @return a <code>String</code> form of the fraction
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java Wed Oct 24 00:50:52 2012
@@ -1688,7 +1688,7 @@ public class StrBuilder implements CharS
* Deletes all parts of the builder that the matcher matches.
* <p>
* Matchers can be used to perform advanced deletion behaviour.
- * For example you could write a matcher to delete all occurances
+ * For example you could write a matcher to delete all occurrences
* where the character 'a' is followed by a number.
*
* @param matcher the matcher to use to find the deletion, null causes no action
@@ -1838,7 +1838,7 @@ public class StrBuilder implements CharS
* Replaces all matches within the builder with the replace string.
* <p>
* Matchers can be used to perform advanced replace behaviour.
- * For example you could write a matcher to replace all occurances
+ * For example you could write a matcher to replace all occurrences
* where the character 'a' is followed by a number.
*
* @param matcher the matcher to use to find the deletion, null causes no action
@@ -1869,7 +1869,7 @@ public class StrBuilder implements CharS
* Advanced search and replaces within the builder using a matcher.
* <p>
* Matchers can be used to perform advanced behaviour.
- * For example you could write a matcher to delete all occurances
+ * For example you could write a matcher to delete all occurrences
* where the character 'a' is followed by a number.
*
* @param matcher the matcher to use to find the deletion, null causes no action
@@ -1892,7 +1892,7 @@ public class StrBuilder implements CharS
* Replaces within the builder using a matcher.
* <p>
* Matchers can be used to perform advanced behaviour.
- * For example you could write a matcher to delete all occurances
+ * For example you could write a matcher to delete all occurrences
* where the character 'a' is followed by a number.
*
* @param matcher the matcher to use to find the deletion, null causes no action
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrMatcher.java?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrMatcher.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrMatcher.java Wed Oct 24 00:50:52 2012
@@ -230,7 +230,7 @@ public abstract class StrMatcher {
* Only values in the buffer between the specifed indices may be accessed.
* <p>
* The matching code may check one character or many.
- * It may check characters preceeding <code>pos</code> as well as those
+ * It may check characters preceding <code>pos</code> as well as those
* after, so long as no checks exceed the bounds specified.
* <p>
* It must return zero for no match, or a positive number if a match was found.
@@ -254,7 +254,7 @@ public abstract class StrMatcher {
* The API guarantees that <code>pos</code> is a valid index for <code>buffer</code>.
* <p>
* The matching code may check one character or many.
- * It may check characters preceeding <code>pos</code> as well as those after.
+ * It may check characters preceding <code>pos</code> as well as those after.
* <p>
* It must return zero for no match, or a positive number if a match was found.
* The number indicates the number of characters that matched.
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/StopWatch.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/StopWatch.java?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/StopWatch.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/StopWatch.java Wed Oct 24 00:50:52 2012
@@ -288,7 +288,7 @@ public class StopWatch {
} else if (this.runningState == STATE_RUNNING) {
return System.nanoTime() - this.startTime;
}
- throw new RuntimeException("Illegal running state has occured. ");
+ throw new RuntimeException("Illegal running state has occurred.");
}
/**
Modified: commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt (original)
+++ commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt Wed Oct 24 00:50:52 2012
@@ -42,7 +42,7 @@ StringUtils.convertUnicodeToNative and c
DEPRECATIONS:
-Much of the exception subpackage was reworked betwen 1.0-b1 and 1.0. Apart
+Much of the exception subpackage was reworked between 1.0-b1 and 1.0. Apart
from this the API should have a high level of backward compatibility.
Modified: commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-2.0.txt
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-2.0.txt?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-2.0.txt (original)
+++ commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-2.0.txt Wed Oct 24 00:50:52 2012
@@ -127,8 +127,8 @@ ID Sev Pri Plt Owner State Result Summar
16193 Hierarchy support in EqualsBuilder.reflectionEquals()
16202 typo in the javadoc example code
16204 Infinite loop in StringUtils.replace(text, repl, with) + FIX
-16227 Added class hierachy support to CompareToBuilder.reflectionC
-16228 Added class hierachy support to HashCodeBuilder.reflectionHa
+16227 Added class hierarchy support to CompareToBuilder.reflectionC
+16228 Added class hierarchy support to HashCodeBuilder.reflectionHa
16284 MethodUtils: Removed unused code/unused local vars.
16341 No Javadoc for NestableDelegate
16622 Removed compile warning in FastDateFormat
Modified: commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-3.0.txt
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-3.0.txt?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-3.0.txt (original)
+++ commons/proper/lang/trunk/src/site/resources/release-notes/RELEASE-NOTES-3.0.txt Wed Oct 24 00:50:52 2012
@@ -111,7 +111,7 @@ BUG FIXES IN 3.0
[LANG-11] Depend on JDK 1.5+.
[LANG-302] StrBuilder does not implement clone().
- [LANG-339] StringEscapeUtils.escapeHtml() escapes multibyte characters like Chinese, Japanes, etc.
+ [LANG-339] StringEscapeUtils.escapeHtml() escapes multibyte characters like Chinese, Japanese, etc.
[LANG-369] ExceptionUtils not thread-safe.
[LANG-418] Javadoc incorrect for StringUtils.endsWithIgnoreCase.
[LANG-428] StringUtils.isAlpha, isAlphanumeric and isNumeric now return false for ""
Modified: commons/proper/lang/trunk/src/site/xdoc/developerguide.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/developerguide.xml?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/developerguide.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/developerguide.xml Wed Oct 24 00:50:52 2012
@@ -141,7 +141,7 @@ However, it's not something to get worke
<h3>5.BUILDING</h3>
<h4>Building a Release</h4>
<p>
-The currently targetted version of Java is 1.5.
+The currently targeted version of Java is 1.5.
</p>
<p>
To build Lang:
Modified: commons/proper/lang/trunk/src/site/xdoc/mail-lists.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/mail-lists.xml?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/mail-lists.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/mail-lists.xml Wed Oct 24 00:50:52 2012
@@ -149,7 +149,7 @@ limitations under the License.
<td>
<strong>Commons Commits List</strong>
<br /><br />
- Only for e-mails automatically generated by the <a href="source-repository.html">source control</a> sytem.
+ Only for e-mails automatically generated by the <a href="source-repository.html">source control</a> system.
<br /><br />
</td>
<td><a href="mailto:commits-subscribe@commons.apache.org">Subscribe</a></td>
Modified: commons/proper/lang/trunk/src/site/xdoc/upgradeto2_0.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/upgradeto2_0.xml?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/upgradeto2_0.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/upgradeto2_0.xml Wed Oct 24 00:50:52 2012
@@ -149,8 +149,8 @@ ID Sev Pri Plt Owner State Result Summar
16193 Hierarchy support in EqualsBuilder.reflectionEquals()
16202 typo in the javadoc example code
16204 Infinite loop in StringUtils.replace(text, repl, with) + FIX
-16227 Added class hierachy support to CompareToBuilder.reflectionC
-16228 Added class hierachy support to HashCodeBuilder.reflectionHa
+16227 Added class hierarchy support to CompareToBuilder.reflectionC
+16228 Added class hierarchy support to HashCodeBuilder.reflectionHa
16284 MethodUtils: Removed unused code/unused local vars.
16341 No Javadoc for NestableDelegate
16622 Removed compile warning in FastDateFormat
Modified: commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml Wed Oct 24 00:50:52 2012
@@ -124,7 +124,7 @@ BUG FIXES IN 3.0
[LANG-11] Depend on JDK 1.5+.
[LANG-302] StrBuilder does not implement clone().
- [LANG-339] StringEscapeUtils.escapeHtml() escapes multibyte characters like Chinese, Japanes, etc.
+ [LANG-339] StringEscapeUtils.escapeHtml() escapes multibyte characters like Chinese, Japanese, etc.
[LANG-369] ExceptionUtils not thread-safe.
[LANG-418] Javadoc incorrect for StringUtils.endsWithIgnoreCase.
[LANG-428] StringUtils.isAlpha, isAlphanumeric and isNumeric now return false for ""
Modified: commons/proper/lang/trunk/src/site/xdoc/userguide.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/userguide.xml?rev=1401523&r1=1401522&r2=1401523&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/userguide.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/userguide.xml Wed Oct 24 00:50:52 2012
@@ -294,7 +294,7 @@ public class ServerThread implements Run
high load, if multiple threads access the initializer concurrently, it is
possible that the <code>initialize()</code> method is invoked multiple
times. The class guarantees that <code>get()</code> always returns the
- same object though; so objects created accidently are immideately discarded.
+ same object though; so objects created accidentally are immideately discarded.
</p>
<p>
With <code>AtomicSafeInitializer</code> there is yet another variant
@@ -536,7 +536,7 @@ MyClass obj = ConcurrentUtils.initialize
need on demand. However, sometimes it is desired to set some properties of
the newly created worker threads. This is possible through the
<code>ThreadFactory</code> interface; an implementation of this interface
- has to be created and pased to an executor on creation time. Currently, the
+ has to be created and passed to an executor on creation time. Currently, the
JDK does not provide an implementation of <code>ThreadFactory</code>, so
one has to start from scratch.
</p>