Fix various Javadoc typos (closes #134)
This commit is contained in:
parent
3d05c24107
commit
8acb1d2b42
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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("animal", "quick brown fox");
|
||||
|
|
|
@ -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'");
|
||||
|
|
Loading…
Reference in New Issue