Standardize on US English spelling (recognised -> recognized.)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/branches/COLLECTIONS_3_2_X@1744817 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2016-05-20 23:52:06 +00:00
parent 0af1674835
commit 7fd216b472
2 changed files with 4 additions and 4 deletions

View File

@ -888,7 +888,7 @@ public class CollectionUtils {
* *
* @param object the object to get the size of * @param object the object to get the size of
* @return the size of the specified collection * @return the size of the specified collection
* @throws IllegalArgumentException thrown if object is not recognised or null * @throws IllegalArgumentException thrown if object is not recognized or null
* @since Commons Collections 3.1 * @since Commons Collections 3.1
*/ */
public static int size(Object object) { public static int size(Object object) {
@ -940,7 +940,7 @@ public class CollectionUtils {
* *
* @param object the object to get the size of, not null * @param object the object to get the size of, not null
* @return true if empty * @return true if empty
* @throws IllegalArgumentException thrown if object is not recognised or null * @throws IllegalArgumentException thrown if object is not recognized or null
* @since Commons Collections 3.2 * @since Commons Collections 3.2
*/ */
public static boolean sizeIsEmpty(Object object) { public static boolean sizeIsEmpty(Object object) {

View File

@ -172,7 +172,7 @@ public class FixedOrderComparator implements Comparator {
if (unknownObjectBehavior != UNKNOWN_AFTER if (unknownObjectBehavior != UNKNOWN_AFTER
&& unknownObjectBehavior != UNKNOWN_BEFORE && unknownObjectBehavior != UNKNOWN_BEFORE
&& unknownObjectBehavior != UNKNOWN_THROW_EXCEPTION) { && unknownObjectBehavior != UNKNOWN_THROW_EXCEPTION) {
throw new IllegalArgumentException("Unrecognised value for unknown behaviour flag"); throw new IllegalArgumentException("Unrecognized value for unknown behaviour flag");
} }
this.unknownObjectBehavior = unknownObjectBehavior; this.unknownObjectBehavior = unknownObjectBehavior;
} }
@ -224,7 +224,7 @@ public class FixedOrderComparator implements Comparator {
* Compares two objects according to the order of this Comparator. * Compares two objects according to the order of this Comparator.
* <p> * <p>
* It is important to note that this class will throw an IllegalArgumentException * It is important to note that this class will throw an IllegalArgumentException
* in the case of an unrecognised object. This is not specified in the * in the case of an unrecognized object. This is not specified in the
* Comparator interface, but is the most appropriate exception. * Comparator interface, but is the most appropriate exception.
* *
* @param obj1 the first object to compare * @param obj1 the first object to compare