Fix various Javadoc typos (closes #134)

This commit is contained in:
Casey Scarborough 2016-04-24 11:41:10 -04:00 committed by Pascal Schumacher
parent 3d05c24107
commit 8acb1d2b42
6 changed files with 8 additions and 8 deletions

View File

@ -1948,7 +1948,7 @@ public static void isInstanceOf(final Class<?> type, final Object obj) {
* 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

View File

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

View File

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

View File

@ -226,7 +226,7 @@ protected 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

View File

@ -67,7 +67,7 @@
* 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;);

View File

@ -158,7 +158,7 @@ public static String formatDuration(final long durationMillis, final String form
}
/**
* <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 static String formatDurationWords(
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'");