This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 1.X
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
The following commit(s) were added to refs/heads/1.X by this push:
new 02c197b0 Javadoc
02c197b0 is described below
commit 02c197b017dca30d96c8822b86b85c38e58c75d8
Author: Gary D. Gregory <[email protected]>
AuthorDate: Fri Jan 31 08:43:59 2025 -0500
Javadoc
Normalize spelling
---
src/main/java/org/apache/commons/beanutils/BeanUtils.java | 2 +-
.../org/apache/commons/beanutils/DynaBeanMapDecorator.java | 2 +-
.../java/org/apache/commons/beanutils/LazyDynaClass.java | 4 ++--
.../java/org/apache/commons/beanutils/LazyDynaList.java | 2 +-
.../java/org/apache/commons/beanutils/LazyDynaMap.java | 4 ++--
.../java/org/apache/commons/beanutils/MethodUtils.java | 14 +++++++-------
.../org/apache/commons/beanutils/PropertyUtilsBean.java | 8 ++++----
.../java/org/apache/commons/beanutils/WeakFastHashMap.java | 2 +-
.../commons/beanutils/converters/StringConverter.java | 2 +-
.../commons/beanutils/locale/LocaleConvertUtilsBean.java | 2 +-
.../apache/commons/beanutils/BeanificationTestCase.java | 2 +-
.../apache/commons/beanutils/PropertyUtilsTestCase.java | 6 +++---
.../commons/beanutils/PropsFirstPropertyUtilsBean.java | 2 +-
.../org/apache/commons/beanutils/bugs/Jira492TestCase.java | 2 +-
.../converters/BooleanArrayConverterTestCase.java | 2 +-
.../beanutils/locale/LocaleBeanificationTestCase.java | 2 +-
16 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/main/java/org/apache/commons/beanutils/BeanUtils.java
b/src/main/java/org/apache/commons/beanutils/BeanUtils.java
index 7c97b21b..91aefdfe 100644
--- a/src/main/java/org/apache/commons/beanutils/BeanUtils.java
+++ b/src/main/java/org/apache/commons/beanutils/BeanUtils.java
@@ -25,7 +25,7 @@ import java.util.Map;
*
* <p>The implementations are provided by {@link BeanUtilsBean}.
* These static utility methods use the default instance.
- * More sophisticated behaviour can be provided by using a
<code>BeanUtilsBean</code> instance.</p>
+ * More sophisticated behavior can be provided by using a
<code>BeanUtilsBean</code> instance.</p>
*
* @see BeanUtilsBean
*/
diff --git
a/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
b/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
index daa7d188..a9616440 100644
--- a/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
+++ b/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
@@ -17,7 +17,7 @@
package org.apache.commons.beanutils;
/**
- * <p>Decorates a {@link DynaBean} to provide <code>Map</code> behaviour.</p>
+ * <p>Decorates a {@link DynaBean} to provide <code>Map</code> behavior.</p>
*
* <p>The motivation for this implementation is to provide access to {@link
DynaBean}
* properties in technologies that are unaware of BeanUtils and {@link
DynaBean}s -
diff --git a/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
b/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
index 297042ed..0f7ebeb7 100644
--- a/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
+++ b/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
@@ -22,7 +22,7 @@ package org.apache.commons.beanutils;
* <p>A <code>MutableDynaClass</code> is a specialized extension to
<code>DynaClass</code>
* that allows properties to be added or removed dynamically.</p>
*
- * <p>This implementation has one slightly unusual default behaviour - calling
+ * <p>This implementation has one slightly unusual default behavior - calling
* the <code>getDynaProperty(name)</code> method for a property which
doesn't
* exist returns a <code>DynaProperty</code> rather than <code>null</code>.
The
* reason for this is that <code>BeanUtils</code> calls this method to
check if
@@ -31,7 +31,7 @@ package org.apache.commons.beanutils;
* when any of its <code>set()</code> methods are called. For this reason
the
* <code>isDynaProperty(name)</code> method has been added to this
implementation
* in order to determine if a property actually exists. If the more
<em>normal</em>
- * behaviour of returning <code>null</code> is required, then this can be
achieved
+ * behavior of returning <code>null</code> is required, then this can be
achieved
* by calling the <code>setReturnNull(true)</code>.</p>
*
* <p>The <code>add(name, type, readable, writable)</code> method is not
implemented
diff --git a/src/main/java/org/apache/commons/beanutils/LazyDynaList.java
b/src/main/java/org/apache/commons/beanutils/LazyDynaList.java
index 56ea1098..d957b270 100644
--- a/src/main/java/org/apache/commons/beanutils/LazyDynaList.java
+++ b/src/main/java/org/apache/commons/beanutils/LazyDynaList.java
@@ -26,7 +26,7 @@ import java.util.Map;
*
* <p>There are two main purposes for this class:</p>
* <ul>
- * <li>To provide <em>Lazy List</em> behaviour - automatically
+ * <li>To provide <em>Lazy List</em> behavior - automatically
* <em>growing</em> and <em>populating</em> the <code>List</code>
* with either <code>DynaBean</code>, <code>java.util.Map</code>
* or POJO Beans.</li>
diff --git a/src/main/java/org/apache/commons/beanutils/LazyDynaMap.java
b/src/main/java/org/apache/commons/beanutils/LazyDynaMap.java
index 74a21fc2..6648d97c 100644
--- a/src/main/java/org/apache/commons/beanutils/LazyDynaMap.java
+++ b/src/main/java/org/apache/commons/beanutils/LazyDynaMap.java
@@ -25,10 +25,10 @@ import java.util.Map;
* <p>Its a <em>light weight</em> <code>DynaBean</code> implementation because
there is no
* actual <code>DynaClass</code> associated with this <code>DynaBean</code>
- in fact
* it implements the <code>DynaClass</code> interface itself providing
<em>pseudo</em> DynaClass
- * behaviour from the actual values stored in the <code>Map</code>.</p>
+ * behavior from the actual values stored in the <code>Map</code>.</p>
*
* <p>As well providing rhe standard <code>DynaBean</code> access to the
<code>Map</code>'s properties
- * this class also provides the usual <em>Lazy</em> behaviour:</p>
+ * this class also provides the usual <em>Lazy</em> behavior:</p>
* <ul>
* <li>Properties don't need to be pre-defined in a
<code>DynaClass</code></li>
* <li>Indexed properties (<code>Lists</code> or <code>Arrays</code>)
are automatically instantiated
diff --git a/src/main/java/org/apache/commons/beanutils/MethodUtils.java
b/src/main/java/org/apache/commons/beanutils/MethodUtils.java
index c69189b0..bc1d9b08 100644
--- a/src/main/java/org/apache/commons/beanutils/MethodUtils.java
+++ b/src/main/java/org/apache/commons/beanutils/MethodUtils.java
@@ -921,7 +921,7 @@ public class MethodUtils {
/**
* <p>Invoke a named method whose parameter type matches the object
type.</p>
*
- * <p>The behaviour of this method is less deterministic
+ * <p>The behavior of this method is less deterministic
* than <code>invokeExactMethod()</code>.
* It loops through all methods with names that match
* and then executes the first it finds with compatible parameters.</p>
@@ -961,7 +961,7 @@ public class MethodUtils {
/**
* <p>Invoke a named method whose parameter type matches the object
type.</p>
*
- * <p>The behaviour of this method is less deterministic
+ * <p>The behavior of this method is less deterministic
* than {@link #invokeExactMethod(Object object,String methodName,Object
[] args)}.
* It loops through all methods with names that match
* and then executes the first it finds with compatible parameters.</p>
@@ -1008,7 +1008,7 @@ public class MethodUtils {
/**
* <p>Invoke a named method whose parameter type matches the object
type.</p>
*
- * <p>The behaviour of this method is less deterministic
+ * <p>The behavior of this method is less deterministic
* than {@link
* #invokeExactMethod(Object object,String methodName,Object []
args,Class[] parameterTypes)}.
* It loops through all methods with names that match
@@ -1062,7 +1062,7 @@ public class MethodUtils {
/**
* <p>Invoke a named static method whose parameter type matches the object
type.</p>
*
- * <p>The behaviour of this method is less deterministic
+ * <p>The behavior of this method is less deterministic
* than {@link #invokeExactMethod(Object, String, Object[], Class[])}.
* It loops through all methods with names that match
* and then executes the first it finds with compatible parameters.</p>
@@ -1103,7 +1103,7 @@ public class MethodUtils {
/**
* <p>Invoke a named static method whose parameter type matches the object
type.</p>
*
- * <p>The behaviour of this method is less deterministic
+ * <p>The behavior of this method is less deterministic
* than {@link #invokeExactMethod(Object object,String methodName,Object
[] args)}.
* It loops through all methods with names that match
* and then executes the first it finds with compatible parameters.</p>
@@ -1151,7 +1151,7 @@ public class MethodUtils {
/**
* <p>Invoke a named static method whose parameter type matches the object
type.</p>
*
- * <p>The behaviour of this method is less deterministic
+ * <p>The behavior of this method is less deterministic
* than {@link
* #invokeExactStaticMethod(Class objectClass,String methodName,Object []
args,Class[] parameterTypes)}.
* It loops through all methods with names that match
@@ -1227,7 +1227,7 @@ public class MethodUtils {
if (parameterType.isPrimitive()) {
// this method does *not* do widening - you must specify exactly
- // is this the right behaviour?
+ // is this the right behavior?
final Class<?> parameterWrapperClazz =
getPrimitiveWrapper(parameterType);
if (parameterWrapperClazz != null) {
return parameterWrapperClazz.equals(parameterization);
diff --git a/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java
b/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java
index 6b186884..3e0941d5 100644
--- a/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java
+++ b/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java
@@ -1824,16 +1824,16 @@ public class PropertyUtilsBean {
* 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>
* </ul>
* <p>
- * 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
+ * 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
* 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
- * (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]
+ * (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]
* <p>
* 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
- * 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
+ * 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
* method, do not forget to deal with MAPPED_DELIM and INDEXED_DELIM
characters in the propertyName.
* <p>
* 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
- * 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
+ * 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
* PropertyUtilsBean class by overriding this method.
*
* @param bean Map bean
diff --git a/src/main/java/org/apache/commons/beanutils/WeakFastHashMap.java
b/src/main/java/org/apache/commons/beanutils/WeakFastHashMap.java
index f495b41f..c5555c07 100644
--- a/src/main/java/org/apache/commons/beanutils/WeakFastHashMap.java
+++ b/src/main/java/org/apache/commons/beanutils/WeakFastHashMap.java
@@ -429,7 +429,7 @@ class WeakFastHashMap<K, V> extends HashMap<K, V> {
}
// Map modification
- // These methods perform special behaviour in 'fast' mode.
+ // These methods perform special behavior in 'fast' mode.
// The map is cloned, updated and then assigned back.
// See the comments at the top as to why this won't always work.
diff --git
a/src/main/java/org/apache/commons/beanutils/converters/StringConverter.java
b/src/main/java/org/apache/commons/beanutils/converters/StringConverter.java
index e197c546..80706299 100644
--- a/src/main/java/org/apache/commons/beanutils/converters/StringConverter.java
+++ b/src/main/java/org/apache/commons/beanutils/converters/StringConverter.java
@@ -32,7 +32,7 @@ package org.apache.commons.beanutils.converters;
* that value.
* <p>
* It is possible to replace this converter with something that has a big
- * if/else statement that selects behaviour based on the real type of the
+ * if/else statement that selects behavior based on the real type of the
* object being converted (or possibly has a map of converters, and looks
* them up based on the class of the input object). However this is not part
* of the existing ConvertUtils framework.
diff --git
a/src/main/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsBean.java
b/src/main/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsBean.java
index f016dd7d..d5369fa7 100644
---
a/src/main/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsBean.java
+++
b/src/main/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsBean.java
@@ -414,7 +414,7 @@ public class LocaleConvertUtilsBean {
converter.put(String.class, new StringLocaleConverter(locale,
applyLocalized));
// conversion format patterns of java.sql.* types should correspond to
default
- // behaviour of toString and valueOf methods of these classes
+ // behavior of toString and valueOf methods of these classes
converter.put(java.sql.Date.class, new SqlDateLocaleConverter(locale,
"yyyy-MM-dd"));
converter.put(java.sql.Time.class, new SqlTimeLocaleConverter(locale,
"HH:mm:ss"));
converter.put(java.sql.Timestamp.class, new
SqlTimestampLocaleConverter(locale, "yyyy-MM-dd HH:mm:ss.S"));
diff --git
a/src/test/java/org/apache/commons/beanutils/BeanificationTestCase.java
b/src/test/java/org/apache/commons/beanutils/BeanificationTestCase.java
index 193064bc..2dfdd822 100644
--- a/src/test/java/org/apache/commons/beanutils/BeanificationTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils/BeanificationTestCase.java
@@ -432,7 +432,7 @@ public class BeanificationTestCase extends TestCase {
/** Tests whether classloaders and beans are released from memory by the
map used by beanutils */
public void testMemoryLeak2() throws Exception {
- // tests when the map used by beanutils has the right behaviour
+ // tests when the map used by beanutils has the right behavior
// many thanks to Juozas Baliuka for suggesting this methodology
TestClassLoader loader = new TestClassLoader();
final ReferenceQueue<Object> queue = new ReferenceQueue<>();
diff --git
a/src/test/java/org/apache/commons/beanutils/PropertyUtilsTestCase.java
b/src/test/java/org/apache/commons/beanutils/PropertyUtilsTestCase.java
index dccbac93..ac83b694 100644
--- a/src/test/java/org/apache/commons/beanutils/PropertyUtilsTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils/PropertyUtilsTestCase.java
@@ -2657,7 +2657,7 @@ public class PropertyUtilsTestCase extends TestCase {
/**
* This tests to see that it is possible to subclass PropertyUtilsBean
- * and change the behaviour of setNestedProperty/getNestedProperty when
+ * and change the behavior of setNestedProperty/getNestedProperty when
* dealing with objects that implement Map.
*/
public void testMapExtensionCustom() throws Exception {
@@ -2696,9 +2696,9 @@ public class PropertyUtilsTestCase extends TestCase {
* This tests to see that classes that implement Map always have their
* custom properties ignored.
* <p>
- * Note that this behaviour has changed several times over past releases
+ * Note that this behavior has changed several times over past releases
* of beanutils, breaking backwards compatibility each time. Here's hoping
- * that the current 1.7.1 release is the last time this behaviour changes!
+ * that the current 1.7.1 release is the last time this behavior changes!
*/
public void testMapExtensionDefault() throws Exception {
final ExtendMapBean bean = new ExtendMapBean();
diff --git
a/src/test/java/org/apache/commons/beanutils/PropsFirstPropertyUtilsBean.java
b/src/test/java/org/apache/commons/beanutils/PropsFirstPropertyUtilsBean.java
index b36f691d..6f209c21 100644
---
a/src/test/java/org/apache/commons/beanutils/PropsFirstPropertyUtilsBean.java
+++
b/src/test/java/org/apache/commons/beanutils/PropsFirstPropertyUtilsBean.java
@@ -21,7 +21,7 @@ import java.lang.reflect.InvocationTargetException;
import java.util.Map;
/**
- * A PropertyUtilsBean which customizes the behaviour of the
+ * A PropertyUtilsBean which customizes the behavior of the
* setNestedProperty and getNestedProperty methods to look for
* simple properties in preference to map entries.
*
diff --git
a/src/test/java/org/apache/commons/beanutils/bugs/Jira492TestCase.java
b/src/test/java/org/apache/commons/beanutils/bugs/Jira492TestCase.java
index 0da40fbf..3571caba 100644
--- a/src/test/java/org/apache/commons/beanutils/bugs/Jira492TestCase.java
+++ b/src/test/java/org/apache/commons/beanutils/bugs/Jira492TestCase.java
@@ -92,7 +92,7 @@ public class Jira492TestCase {
@Test
public void getPropertyType() throws Exception {
if (supportsIndexedLists()) {
- // legacy behaviour (< Java 8)
+ // legacy behavior (< Java 8)
assertEquals(String.class, propertyUtils.getPropertyType(bean,
"someList[0]"));
} else {
assertEquals(List.class, propertyUtils.getPropertyType(bean,
"someList"));
diff --git
a/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java
b/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java
index 0ba33084..757c2c7d 100644
---
a/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java
+++
b/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java
@@ -29,7 +29,7 @@ import junit.framework.TestCase;
* strings to booleans, as the BooleanArrayConverter class uses a
* BooleanConverter instance to do those conversions, and the BooleanConverter
* class has its own unit tests. Here, the tests focus on the array-related
- * behaviour.</p>
+ * behavior.</p>
*
*/
public class BooleanArrayConverterTestCase extends TestCase {
diff --git
a/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java
b/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java
index 7ddd56b3..e39e1ef3 100644
---
a/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java
+++
b/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java
@@ -472,7 +472,7 @@ public class LocaleBeanificationTestCase extends TestCase {
/** Tests whether classloaders and beans are released from memory by the
map used by beanutils */
public void testMemoryLeak2() throws Exception {
- // tests when the map used by beanutils has the right behaviour
+ // tests when the map used by beanutils has the right behavior
// many thanks to Juozas Baliuka for suggesting this methodology
TestClassLoader loader = new TestClassLoader();
final ReferenceQueue<Object> queue = new ReferenceQueue<>();