Author: ggregory Date: Mon May 23 20:53:17 2016 New Revision: 1745271 URL: http://svn.apache.org/viewvc?rev=1745271&view=rev Log: Use US English spelling for 'recognized'.
Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanConverter.java commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java?rev=1745271&r1=1745270&r2=1745271&view=diff ============================================================================== --- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java (original) +++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanArrayConverter.java Mon May 23 20:53:17 2016 @@ -30,7 +30,7 @@ import org.apache.commons.beanutils.Conv * on how this instance is constructed.</p> * * <p>By default, the values to be converted are expected to be those - * recognised by a default instance of BooleanConverter. A customised + * recognized by a default instance of BooleanConverter. A customised * BooleanConverter can be provided in order to recognise alternative values * as true/false. </p> * @@ -154,10 +154,10 @@ public final class BooleanArrayConverter * </p> * * <p>If any of the elements in the value array (or the elements resulting - * from splitting up value.toString) are not recognised by the + * from splitting up value.toString) are not recognized by the * BooleanConverter associated with this object, then what happens depends * on whether that BooleanConverter has a default value or not: if it does, - * then that unrecognised element is converted into the BooleanConverter's + * then that unrecognized element is converted into the BooleanConverter's * default value. If the BooleanConverter does <i>not</i> have a default * value, then the default value for this object is returned as the * <i>complete</i> conversion result (not just for the element), or an Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanConverter.java URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanConverter.java?rev=1745271&r1=1745270&r2=1745271&view=diff ============================================================================== --- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanConverter.java (original) +++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/converters/BooleanConverter.java Mon May 23 20:53:17 2016 @@ -28,7 +28,7 @@ package org.apache.commons.beanutils.con * By default any object whose string representation is one of the values * {"yes", "y", "true", "on", "1"} is converted to Boolean.TRUE, and * string representations {"no", "n", "false", "off", "0"} are converted - * to Boolean.FALSE. The recognised true/false strings can be changed by: + * to Boolean.FALSE. The recognized true/false strings can be changed by: * <pre> * String[] trueStrings = {"oui", "o", "1"}; * String[] falseStrings = {"non", "n", "0"}; @@ -72,7 +72,7 @@ public final class BooleanConverter exte * not one of the known true strings, nor one of the known false strings. * * @param defaultValue The default value to be returned if the value - * being converted is not recognised. This value may be null, in which + * being converted is not recognized. This value may be null, in which * case null will be returned on conversion failure. When non-null, it is * expected that this value will be either Boolean.TRUE or Boolean.FALSE. * The special value BooleanConverter.NO_DEFAULT can also be passed here, @@ -125,7 +125,7 @@ public final class BooleanConverter exte * ignored. * * @param defaultValue The default value to be returned if the value - * being converted is not recognised. This value may be null, in which + * being converted is not recognized. This value may be null, in which * case null will be returned on conversion failure. When non-null, it is * expected that this value will be either Boolean.TRUE or Boolean.FALSE. * The special value BooleanConverter.NO_DEFAULT can also be passed here, @@ -194,9 +194,9 @@ public final class BooleanConverter exte * shall be invoked on this object, and the result compared (ignoring * case) against the known "true" and "false" string values. * - * @return Boolean.TRUE if the value was a recognised "true" value, - * Boolean.FALSE if the value was a recognised "false" value, or - * the default value if the value was not recognised and the constructor + * @return Boolean.TRUE if the value was a recognized "true" value, + * Boolean.FALSE if the value was a recognized "false" value, or + * the default value if the value was not recognized and the constructor * was provided with a default value. * * @throws Throwable if an error occurs converting to the specified type Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java?rev=1745271&r1=1745270&r2=1745271&view=diff ============================================================================== --- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java (original) +++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java Mon May 23 20:53:17 2016 @@ -166,7 +166,7 @@ public class BooleanArrayConverterTestCa assertTrue(results[2]); try { - // the literal string 'true' should no longer be recognised as + // the literal string 'true' should no longer be recognized as // a true value.. converter.convert(null, "true"); fail("Converting invalid string should have generated an exception"); @@ -237,7 +237,7 @@ public class BooleanArrayConverterTestCa * With the standard BooleanArrayConverter, if <i>any</i> of the elements * in the array are bad, then the array-wide default value is returned. * However by specifying a custom BooleanConverter which has a per-element - * default, the unrecognised elements get that per-element default but the + * default, the unrecognized elements get that per-element default but the * others are converted as expected. */ public void testElementDefault() {