Skip to content

Commit 02c197b

Browse files
committed
Javadoc
Normalize spelling
1 parent 005bc61 commit 02c197b

16 files changed

+29
-29
lines changed

src/main/java/org/apache/commons/beanutils/BeanUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* <p>The implementations are provided by {@link BeanUtilsBean}.
2727
* These static utility methods use the default instance.
28-
* More sophisticated behaviour can be provided by using a <code>BeanUtilsBean</code> instance.</p>
28+
* More sophisticated behavior can be provided by using a <code>BeanUtilsBean</code> instance.</p>
2929
*
3030
* @see BeanUtilsBean
3131
*/

src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package org.apache.commons.beanutils;
1818

1919
/**
20-
* <p>Decorates a {@link DynaBean} to provide <code>Map</code> behaviour.</p>
20+
* <p>Decorates a {@link DynaBean} to provide <code>Map</code> behavior.</p>
2121
*
2222
* <p>The motivation for this implementation is to provide access to {@link DynaBean}
2323
* properties in technologies that are unaware of BeanUtils and {@link DynaBean}s -

src/main/java/org/apache/commons/beanutils/LazyDynaClass.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* <p>A <code>MutableDynaClass</code> is a specialized extension to <code>DynaClass</code>
2323
* that allows properties to be added or removed dynamically.</p>
2424
*
25-
* <p>This implementation has one slightly unusual default behaviour - calling
25+
* <p>This implementation has one slightly unusual default behavior - calling
2626
* the <code>getDynaProperty(name)</code> method for a property which doesn't
2727
* exist returns a <code>DynaProperty</code> rather than <code>null</code>. The
2828
* reason for this is that <code>BeanUtils</code> calls this method to check if
@@ -31,7 +31,7 @@
3131
* when any of its <code>set()</code> methods are called. For this reason the
3232
* <code>isDynaProperty(name)</code> method has been added to this implementation
3333
* in order to determine if a property actually exists. If the more <em>normal</em>
34-
* behaviour of returning <code>null</code> is required, then this can be achieved
34+
* behavior of returning <code>null</code> is required, then this can be achieved
3535
* by calling the <code>setReturnNull(true)</code>.</p>
3636
*
3737
* <p>The <code>add(name, type, readable, writable)</code> method is not implemented

src/main/java/org/apache/commons/beanutils/LazyDynaList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* <p>There are two main purposes for this class:</p>
2828
* <ul>
29-
* <li>To provide <em>Lazy List</em> behaviour - automatically
29+
* <li>To provide <em>Lazy List</em> behavior - automatically
3030
* <em>growing</em> and <em>populating</em> the <code>List</code>
3131
* with either <code>DynaBean</code>, <code>java.util.Map</code>
3232
* or POJO Beans.</li>

src/main/java/org/apache/commons/beanutils/LazyDynaMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
* <p>Its a <em>light weight</em> <code>DynaBean</code> implementation because there is no
2626
* actual <code>DynaClass</code> associated with this <code>DynaBean</code> - in fact
2727
* it implements the <code>DynaClass</code> interface itself providing <em>pseudo</em> DynaClass
28-
* behaviour from the actual values stored in the <code>Map</code>.</p>
28+
* behavior from the actual values stored in the <code>Map</code>.</p>
2929
*
3030
* <p>As well providing rhe standard <code>DynaBean</code> access to the <code>Map</code>'s properties
31-
* this class also provides the usual <em>Lazy</em> behaviour:</p>
31+
* this class also provides the usual <em>Lazy</em> behavior:</p>
3232
* <ul>
3333
* <li>Properties don't need to be pre-defined in a <code>DynaClass</code></li>
3434
* <li>Indexed properties (<code>Lists</code> or <code>Arrays</code>) are automatically instantiated

src/main/java/org/apache/commons/beanutils/MethodUtils.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ public static Object invokeExactStaticMethod(
921921
/**
922922
* <p>Invoke a named method whose parameter type matches the object type.</p>
923923
*
924-
* <p>The behaviour of this method is less deterministic
924+
* <p>The behavior of this method is less deterministic
925925
* than <code>invokeExactMethod()</code>.
926926
* It loops through all methods with names that match
927927
* and then executes the first it finds with compatible parameters.</p>
@@ -961,7 +961,7 @@ public static Object invokeMethod(
961961
/**
962962
* <p>Invoke a named method whose parameter type matches the object type.</p>
963963
*
964-
* <p>The behaviour of this method is less deterministic
964+
* <p>The behavior of this method is less deterministic
965965
* than {@link #invokeExactMethod(Object object,String methodName,Object [] args)}.
966966
* It loops through all methods with names that match
967967
* and then executes the first it finds with compatible parameters.</p>
@@ -1008,7 +1008,7 @@ public static Object invokeMethod(
10081008
/**
10091009
* <p>Invoke a named method whose parameter type matches the object type.</p>
10101010
*
1011-
* <p>The behaviour of this method is less deterministic
1011+
* <p>The behavior of this method is less deterministic
10121012
* than {@link
10131013
* #invokeExactMethod(Object object,String methodName,Object [] args,Class[] parameterTypes)}.
10141014
* It loops through all methods with names that match
@@ -1062,7 +1062,7 @@ public static Object invokeMethod(
10621062
/**
10631063
* <p>Invoke a named static method whose parameter type matches the object type.</p>
10641064
*
1065-
* <p>The behaviour of this method is less deterministic
1065+
* <p>The behavior of this method is less deterministic
10661066
* than {@link #invokeExactMethod(Object, String, Object[], Class[])}.
10671067
* It loops through all methods with names that match
10681068
* and then executes the first it finds with compatible parameters.</p>
@@ -1103,7 +1103,7 @@ public static Object invokeStaticMethod(
11031103
/**
11041104
* <p>Invoke a named static method whose parameter type matches the object type.</p>
11051105
*
1106-
* <p>The behaviour of this method is less deterministic
1106+
* <p>The behavior of this method is less deterministic
11071107
* than {@link #invokeExactMethod(Object object,String methodName,Object [] args)}.
11081108
* It loops through all methods with names that match
11091109
* and then executes the first it finds with compatible parameters.</p>
@@ -1151,7 +1151,7 @@ public static Object invokeStaticMethod(
11511151
/**
11521152
* <p>Invoke a named static method whose parameter type matches the object type.</p>
11531153
*
1154-
* <p>The behaviour of this method is less deterministic
1154+
* <p>The behavior of this method is less deterministic
11551155
* than {@link
11561156
* #invokeExactStaticMethod(Class objectClass,String methodName,Object [] args,Class[] parameterTypes)}.
11571157
* It loops through all methods with names that match
@@ -1227,7 +1227,7 @@ public static final boolean isAssignmentCompatible(final Class<?> parameterType,
12271227

12281228
if (parameterType.isPrimitive()) {
12291229
// this method does *not* do widening - you must specify exactly
1230-
// is this the right behaviour?
1230+
// is this the right behavior?
12311231
final Class<?> parameterWrapperClazz = getPrimitiveWrapper(parameterType);
12321232
if (parameterWrapperClazz != null) {
12331233
return parameterWrapperClazz.equals(parameterization);

src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,16 +1824,16 @@ public void setProperty(final Object bean, final String name, final Object value
18241824
* mapping and indexing operations do not make sense when accessing a map (even thought the returned object may be a Map or an Array).</li>
18251825
* </ul>
18261826
* <p>
1827-
* The default behaviour of beanutils 1.7.1 or later is for assigning to "a.b" to mean a.put(b, obj) always. However the behaviour of beanutils version
1827+
* The default behavior of beanutils 1.7.1 or later is for assigning to "a.b" to mean a.put(b, obj) always. However the behavior of beanutils version
18281828
* 1.6.0, 1.6.1, 1.7.0 was for "a.b" to mean a.setB(obj) if such a method existed, and a.put(b, obj) otherwise. In version 1.5 it meant a.put(b, obj) always
1829-
* (ie the same as the behaviour in the current version). In versions prior to 1.5 it meant a.setB(obj) always. [yes, this is all <em>very</em> unfortunate]
1829+
* (ie the same as the behavior in the current version). In versions prior to 1.5 it meant a.setB(obj) always. [yes, this is all <em>very</em> unfortunate]
18301830
* <p>
18311831
* Users who would like to customize the meaning of "a.b" in method setNestedProperty when a is a Map can create a custom subclass of this class and
1832-
* override this method to implement the behaviour of their choice, such as restoring the pre-1.4 behaviour of this class if they wish. When overriding this
1832+
* override this method to implement the behavior of their choice, such as restoring the pre-1.4 behavior of this class if they wish. When overriding this
18331833
* method, do not forget to deal with MAPPED_DELIM and INDEXED_DELIM characters in the propertyName.
18341834
* <p>
18351835
* Note, however, that the recommended solution for objects that implement Map but want their simple properties to come first is for <em>those</em> objects
1836-
* to override their get/put methods to implement that behaviour, and <em>not</em> to solve the problem by modifying the default behaviour of the
1836+
* to override their get/put methods to implement that behavior, and <em>not</em> to solve the problem by modifying the default behavior of the
18371837
* PropertyUtilsBean class by overriding this method.
18381838
*
18391839
* @param bean Map bean

src/main/java/org/apache/commons/beanutils/WeakFastHashMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ protected Map<K, V> cloneMap(final Map<? extends K, ? extends V> map) {
429429
}
430430

431431
// Map modification
432-
// These methods perform special behaviour in 'fast' mode.
432+
// These methods perform special behavior in 'fast' mode.
433433
// The map is cloned, updated and then assigned back.
434434
// See the comments at the top as to why this won't always work.
435435

src/main/java/org/apache/commons/beanutils/converters/StringConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* that value.
3333
* <p>
3434
* It is possible to replace this converter with something that has a big
35-
* if/else statement that selects behaviour based on the real type of the
35+
* if/else statement that selects behavior based on the real type of the
3636
* object being converted (or possibly has a map of converters, and looks
3737
* them up based on the class of the input object). However this is not part
3838
* of the existing ConvertUtils framework.

src/main/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ protected FastHashMap create(final Locale locale) {
414414
converter.put(String.class, new StringLocaleConverter(locale, applyLocalized));
415415

416416
// conversion format patterns of java.sql.* types should correspond to default
417-
// behaviour of toString and valueOf methods of these classes
417+
// behavior of toString and valueOf methods of these classes
418418
converter.put(java.sql.Date.class, new SqlDateLocaleConverter(locale, "yyyy-MM-dd"));
419419
converter.put(java.sql.Time.class, new SqlTimeLocaleConverter(locale, "HH:mm:ss"));
420420
converter.put(java.sql.Timestamp.class, new SqlTimestampLocaleConverter(locale, "yyyy-MM-dd HH:mm:ss.S"));

0 commit comments

Comments
 (0)