Repository: commons-lang
Updated Branches:
  refs/heads/master 3d05c2410 -> 8acb1d2b4


Fix various Javadoc typos (closes #134)


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/8acb1d2b
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/8acb1d2b
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/8acb1d2b

Branch: refs/heads/master
Commit: 8acb1d2b42edcd65bebc94934395c511cc10f598
Parents: 3d05c24
Author: Casey Scarborough <[email protected]>
Authored: Sun Apr 24 11:41:10 2016 -0400
Committer: Pascal Schumacher <[email protected]>
Committed: Sun May 8 12:50:48 2016 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/Validate.java             | 2 +-
 .../java/org/apache/commons/lang3/builder/EqualsBuilder.java     | 2 +-
 .../java/org/apache/commons/lang3/builder/HashCodeBuilder.java   | 4 ++--
 src/main/java/org/apache/commons/lang3/text/StrMatcher.java      | 2 +-
 src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java  | 2 +-
 .../java/org/apache/commons/lang3/time/DurationFormatUtils.java  | 4 ++--
 6 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8acb1d2b/src/main/java/org/apache/commons/lang3/Validate.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/Validate.java 
b/src/main/java/org/apache/commons/lang3/Validate.java
index 2073d3f..9d329b6 100644
--- a/src/main/java/org/apache/commons/lang3/Validate.java
+++ b/src/main/java/org/apache/commons/lang3/Validate.java
@@ -1948,7 +1948,7 @@ public class Validate {
      * throwing an exception with the specified message. This method is useful 
when
      * validating according to an arbitrary class</p>
      *
-     * <pre>Validate.isInstanceOf(OkClass.classs, object, "Wrong class, object 
is of class %s",
+     * <pre>Validate.isInstanceOf(OkClass.class, object, "Wrong class, object 
is of class %s",
      *   object.getClass().getName());</pre>
      *
      * @param type  the class the object must be validated against, not null

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8acb1d2b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java 
b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java
index eb7b6f1..a47223d 100644
--- a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java
@@ -104,7 +104,7 @@ public class EqualsBuilder implements Builder<Boolean> {
      * are equal, so we also need to ensure that the replacement objects are 
only equal
      * if the original objects are identical.
      *
-     * The original implementation (2.4 and before) used the 
System.indentityHashCode()
+     * The original implementation (2.4 and before) used the 
System.identityHashCode()
      * method - however this is not guaranteed to generate unique ids (e.g. 
LANG-459)
      *
      * We now use the IDKey helper class (adapted from 
org.apache.axis.utils.IDKey)

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8acb1d2b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java 
b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
index d56ee9f..72f4ded 100644
--- a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
@@ -107,7 +107,7 @@ public class HashCodeBuilder implements Builder<Integer> {
     private static final int DEFAULT_INITIAL_VALUE = 17;
     
     /**
-     * The default multipler value to use in reflection hash code building.
+     * The default multiplier value to use in reflection hash code building.
      */
     private static final int DEFAULT_MULTIPLIER_VALUE = 37;
     
@@ -130,7 +130,7 @@ public class HashCodeBuilder implements Builder<Integer> {
      * are equal, so we also need to ensure that the replacement objects are 
only equal
      * if the original objects are identical.
      *
-     * The original implementation (2.4 and before) used the 
System.indentityHashCode()
+     * The original implementation (2.4 and before) used the 
System.identityHashCode()
      * method - however this is not guaranteed to generate unique ids (e.g. 
LANG-459)
      *
      * We now use the IDKey helper class (adapted from 
org.apache.axis.utils.IDKey)

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8acb1d2b/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/text/StrMatcher.java 
b/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
index b1804c9..018de7c 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
@@ -226,7 +226,7 @@ public abstract class StrMatcher {
      * The API guarantees that <code>pos</code> is a valid index for 
<code>buffer</code>.
      * <p>
      * The character array may be larger than the active area to be matched.
-     * Only values in the buffer between the specifed indices may be accessed.
+     * Only values in the buffer between the specified indices may be accessed.
      * <p>
      * The matching code may check one character or many.
      * It may check characters preceding <code>pos</code> as well as those

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8acb1d2b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java 
b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
index c34e23d..abc7f3e 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
@@ -67,7 +67,7 @@ import org.apache.commons.lang3.StringUtils;
  * as in bash and other *nix shells, as those are arguably where the default 
${} delimiter set originated.
  * The variable default value delimiter can be manually set by calling {@link 
#setValueDelimiterMatcher(StrMatcher)},
  * {@link #setValueDelimiter(char)} or {@link #setValueDelimiter(String)}.
- * The following shows an example with varialbe default value settings:
+ * The following shows an example with variable default value settings:
  * <pre>
  * Map valuesMap = HashMap();
  * valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8acb1d2b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java 
b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
index f23363d..b471e36 100644
--- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
@@ -158,7 +158,7 @@ public class DurationFormatUtils {
     }
 
     /**
-     * <p>Formats an elapsed time into a plurialization correct string.</p>
+     * <p>Formats an elapsed time into a pluralization correct string.</p>
      * 
      * <p>This method formats durations using the days and lower fields of the
      * format pattern. Months and larger are not used.</p>
@@ -174,7 +174,7 @@ public class DurationFormatUtils {
         final boolean suppressLeadingZeroElements,
         final boolean suppressTrailingZeroElements) {
 
-        // This method is generally replacable by the format method, but 
+        // This method is generally replaceable by the format method, but
         // there are a series of tweaks and special cases that require 
         // trickery to replicate.
         String duration = formatDuration(durationMillis, "d' days 'H' hours 
'm' minutes 's' seconds'");

Reply via email to