Skip to content

Commit 06bca8e

Browse files
committed
Use preferred spelling for "cannot"
1 parent 2238b12 commit 06bca8e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class ConstructorUtils {
4848
* @param <T> the type of the constructor
4949
* @param klass the class to be constructed
5050
* @param parameterType The constructor parameter type
51-
* @return null if matching accessible constructor can not be found.
51+
* @return null if matching accessible constructor cannot be found.
5252
* @see Class#getConstructor
5353
* @see #getAccessibleConstructor(java.lang.reflect.Constructor)
5454
*/
@@ -64,7 +64,7 @@ public static <T> Constructor<T> getAccessibleConstructor(final Class<T> klass,
6464
* @param <T> the type to be constructed
6565
* @param klass the class to be constructed
6666
* @param parameterTypes the parameter array
67-
* @return null if matching accessible constructor can not be found
67+
* @return null if matching accessible constructor cannot be found
6868
* @see Class#getConstructor
6969
* @see #getAccessibleConstructor(java.lang.reflect.Constructor)
7070
*/
@@ -82,7 +82,7 @@ public static <T> Constructor<T> getAccessibleConstructor(final Class<T> klass,
8282
*
8383
* @param <T> the type of the constructor
8484
* @param ctor prototype constructor object.
85-
* @return {@code null} if accessible constructor can not be found.
85+
* @return {@code null} if accessible constructor cannot be found.
8686
* @see SecurityManager
8787
*/
8888
public static <T> Constructor<T> getAccessibleConstructor(final Constructor<T> ctor) {

src/main/java/org/apache/commons/beanutils2/converters/DimensionConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected <T> T convertToType(final Class<T> type, final Object value) throws Th
7070
final String stringValue = toString(value);
7171

7272
if (stringValue.isEmpty()) {
73-
throw new IllegalArgumentException("Dimensions can not be empty.");
73+
throw new IllegalArgumentException("Dimensions cannot be empty.");
7474
}
7575

7676
final Matcher matcher = DIMENSION_PATTERN.matcher(stringValue);

src/main/java/org/apache/commons/beanutils2/converters/PointConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public PointConverter(final Point defaultValue) {
5454
* @return A {@link Point} represented by the x and y coordinate of the input.
5555
* @throws NullPointerException If the value is null.
5656
* @throws IllegalArgumentException If the configuration value is an invalid representation of a {@link Point}.
57-
* @throws NumberFormatException If a one of coordinates can not be parsed to an {@link Integer}.
57+
* @throws NumberFormatException If a one of coordinates cannot be parsed to an {@link Integer}.
5858
*/
5959
@Override
6060
protected <T> T convertToType(final Class<T> type, final Object value) throws Throwable {
6161
if (Point.class.isAssignableFrom(type)) {
6262
final String stringValue = toString(value);
6363

6464
if (stringValue.isEmpty()) {
65-
throw new IllegalArgumentException("A point can not be empty.");
65+
throw new IllegalArgumentException("A point cannot be empty.");
6666
}
6767

6868
final int lastCharIndex = stringValue.length() - 1;

src/main/java/org/apache/commons/beanutils2/locale/converters/FloatLocaleConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private FloatLocaleConverter(final Float defaultValue, final Locale locale, fina
5656

5757
/**
5858
* Parses the specified locale-sensitive input object into an output object of the specified type. This method will return Float value or throw exception if
59-
* value can not be stored in the Float.
59+
* value cannot be stored in the Float.
6060
*
6161
* @param value The input object to be converted
6262
* @param pattern The pattern is used for the conversion

0 commit comments

Comments
 (0)