From 0e1f41bbcae8ffd9b72ee6f237cf214569fd71a4 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 4 Nov 2024 17:59:19 -0500 Subject: [PATCH] Use preferred spelling for "cannot" --- .../java/org/apache/commons/beanutils/ConstructorUtils.java | 6 +++--- .../beanutils/locale/converters/FloatLocaleConverter.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java b/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java index 5893687ee..7c6ea1245 100644 --- a/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java +++ b/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java @@ -50,7 +50,7 @@ public class ConstructorUtils { * @param the type of the constructor * @param klass the class to be constructed * @param parameterType The constructor parameter type - * @return null if matching accessible constructor can not be found. + * @return null if matching accessible constructor cannot be found. * @see Class#getConstructor * @see #getAccessibleConstructor(java.lang.reflect.Constructor) */ @@ -67,7 +67,7 @@ public static Constructor getAccessibleConstructor( * @param the type to be constructed * @param klass the class to be constructed * @param parameterTypes the parameter array - * @return null if matching accessible constructor can not be found + * @return null if matching accessible constructor cannot be found * @see Class#getConstructor * @see #getAccessibleConstructor(java.lang.reflect.Constructor) */ @@ -87,7 +87,7 @@ public static Constructor getAccessibleConstructor( * Returns accessible version of the given constructor. * @param the type of the constructor * @param ctor prototype constructor object. - * @return null if accessible constructor can not be found. + * @return null if accessible constructor cannot be found. * @see java.lang.SecurityManager */ public static Constructor getAccessibleConstructor(final Constructor ctor) { diff --git a/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java b/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java index 067bb0919..b35fa41d4 100644 --- a/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java +++ b/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java @@ -202,7 +202,7 @@ public FloatLocaleConverter(final Object defaultValue, final Locale locale, fina /** * Convert the specified locale-sensitive input object into an output object of the * specified type. This method will return Float value or throw exception if value - * can not be stored in the Float. + * cannot be stored in the Float. * * @param value The input object to be converted * @param pattern The pattern is used for the convertion