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 553ba3f8 Normalize spelling 553ba3f8 is described below commit 553ba3f8bdb1517f751a70d3e5dfaf8f12469763 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Jan 27 11:02:47 2025 -0500 Normalize spelling --- src/changes/changes.xml | 2 +- src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java | 2 +- .../org/apache/commons/beanutils/converters/BooleanArrayConverter.java | 2 +- .../java/org/apache/commons/beanutils/PropsFirstPropertyUtilsBean.java | 2 +- .../commons/beanutils/converters/BooleanArrayConverterTestCase.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index cfe2c93d..528da300 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -434,7 +434,7 @@ src/test/java/org/apache/commons/beanutils/bugs/Jira520TestCase.java."> Create new methods getPropertyOfMapBean and setPropertyOfMapBean that the existing setNestedProperty and getNestedProperty methods now call when they discover the bean they are accessing implements Map. This makes it much easier for users to subclass - and customise this behaviour of PropertyUtilsBean, eg in order to restore pre-1.5 behaviour. + and customize this behaviour of PropertyUtilsBean, eg in order to restore pre-1.5 behaviour. This patch also causes an exception to be thrown when the propertyName passed to getPropertyOfMapBean or setPropertyOfMapBean has MAPPED_DELIM or INDEXED_DELIM chars in it. This never worked as expected before (the whole string was treated literally as the diff --git a/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java b/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java index eefe0c5b..6b186884 100644 --- a/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java +++ b/src/main/java/org/apache/commons/beanutils/PropertyUtilsBean.java @@ -1828,7 +1828,7 @@ public class PropertyUtilsBean { * 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] * <p> - * Users who would like to customise the meaning of "a.b" in method setNestedProperty when a is a Map can create a custom subclass of this class and + * 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 * method, do not forget to deal with MAPPED_DELIM and INDEXED_DELIM characters in the propertyName. * <p> diff --git a/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java b/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java index 7c809eaa..7e3fd3bd 100644 --- a/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java +++ b/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java @@ -28,7 +28,7 @@ import org.apache.commons.beanutils.ConversionException; * on how this instance is constructed.</p> * * <p>By default, the values to be converted are expected to be those - * recognized by a default instance of BooleanConverter. A customised + * recognized by a default instance of BooleanConverter. A customized * BooleanConverter can be provided in order to recognise alternative values * as true/false. </p> * diff --git a/src/test/java/org/apache/commons/beanutils/PropsFirstPropertyUtilsBean.java b/src/test/java/org/apache/commons/beanutils/PropsFirstPropertyUtilsBean.java index a3e8d12d..b36f691d 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 customises the behaviour of the + * A PropertyUtilsBean which customizes the behaviour 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/converters/BooleanArrayConverterTestCase.java b/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java index 2cfc1126..0ba33084 100644 --- a/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java +++ b/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java @@ -48,7 +48,7 @@ public class BooleanArrayConverterTestCase extends TestCase { /** * Check that the user can specify non-standard true/false values by - * providing a customised BooleanConverter. + * providing a customized BooleanConverter. */ public void testAdditionalStrings() { final String[] trueStrings = {"sure"};