This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new fa668ef0d Use preferred spelling for "cannot" fa668ef0d is described below commit fa668ef0d929366e78f993ffda70b2dbd436f295 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Nov 5 05:56:02 2024 -0500 Use preferred spelling for "cannot" --- src/main/java/org/apache/commons/lang3/JavaVersion.java | 2 +- src/main/java/org/apache/commons/lang3/LocaleUtils.java | 2 +- src/main/java/org/apache/commons/lang3/Validate.java | 4 ++-- src/main/java/org/apache/commons/lang3/math/Fraction.java | 8 ++++---- .../org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/JavaVersion.java b/src/main/java/org/apache/commons/lang3/JavaVersion.java index 9f91fbe91..48ffb29ed 100644 --- a/src/main/java/org/apache/commons/lang3/JavaVersion.java +++ b/src/main/java/org/apache/commons/lang3/JavaVersion.java @@ -303,7 +303,7 @@ public enum JavaVersion { * Parses a float value from a String. * * @param value the String to parse. - * @return the float value represented by the string or -1 if the given String can not be parsed. + * @return the float value represented by the string or -1 if the given String cannot be parsed. */ private static float toFloatVersion(final String value) { final int defaultReturnValue = -1; diff --git a/src/main/java/org/apache/commons/lang3/LocaleUtils.java b/src/main/java/org/apache/commons/lang3/LocaleUtils.java index c53a899f7..239886f9c 100644 --- a/src/main/java/org/apache/commons/lang3/LocaleUtils.java +++ b/src/main/java/org/apache/commons/lang3/LocaleUtils.java @@ -256,7 +256,7 @@ public class LocaleUtils { * * @param str the String to parse as a Locale. * @return a Locale parsed from the given String. - * @throws IllegalArgumentException if the given String can not be parsed. + * @throws IllegalArgumentException if the given String cannot be parsed. * @see Locale */ private static Locale parseLocale(final String str) { diff --git a/src/main/java/org/apache/commons/lang3/Validate.java b/src/main/java/org/apache/commons/lang3/Validate.java index f41096d73..cf5aba48a 100644 --- a/src/main/java/org/apache/commons/lang3/Validate.java +++ b/src/main/java/org/apache/commons/lang3/Validate.java @@ -413,14 +413,14 @@ public class Validate { * * <pre>Validate.isAssignableFrom(SuperClass.class, object.getClass());</pre> * - * <p>The message of the exception is "The validated object can not be converted to the" + * <p>The message of the exception is "The validated object cannot be converted to the" * followed by the name of the class and "class"</p> * * @param superType the class must be validated against, not null * @param type the class to check, not null * @param message the {@link String#format(String, Object...)} exception message if invalid, not null * @param values the optional values for the formatted exception message, null array not recommended - * @throws IllegalArgumentException if argument can not be converted to the specified class + * @throws IllegalArgumentException if argument cannot be converted to the specified class * @see #isAssignableFrom(Class, Class) */ public static void isAssignableFrom(final Class<?> superType, final Class<?> type, final String message, final Object... values) { diff --git a/src/main/java/org/apache/commons/lang3/math/Fraction.java b/src/main/java/org/apache/commons/lang3/math/Fraction.java index c921f8dd6..2eef89893 100644 --- a/src/main/java/org/apache/commons/lang3/math/Fraction.java +++ b/src/main/java/org/apache/commons/lang3/math/Fraction.java @@ -96,7 +96,7 @@ public final class Fraction extends Number implements Comparable<Fraction> { * @param x an addend * @param y an addend * @return the sum {@code x+y} - * @throws ArithmeticException if the result can not be represented as + * @throws ArithmeticException if the result cannot be represented as * an int */ private static int addAndCheck(final int x, final int y) { @@ -394,7 +394,7 @@ public final class Fraction extends Number implements Comparable<Fraction> { * @param x a factor * @param y a factor * @return the product {@code x*y} - * @throws ArithmeticException if the result can not be represented as + * @throws ArithmeticException if the result cannot be represented as * an int */ private static int mulAndCheck(final int x, final int y) { @@ -411,7 +411,7 @@ public final class Fraction extends Number implements Comparable<Fraction> { * @param x a non-negative factor * @param y a non-negative factor * @return the product {@code x*y} - * @throws ArithmeticException if the result can not be represented as + * @throws ArithmeticException if the result cannot be represented as * an int */ private static int mulPosAndCheck(final int x, final int y) { @@ -429,7 +429,7 @@ public final class Fraction extends Number implements Comparable<Fraction> { * @param x the minuend * @param y the subtrahend * @return the difference {@code x-y} - * @throws ArithmeticException if the result can not be represented as + * @throws ArithmeticException if the result cannot be represented as * an int */ private static int subAndCheck(final int x, final int y) { diff --git a/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java b/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java index b189cc93a..3e52d908a 100644 --- a/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java +++ b/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java @@ -41,7 +41,7 @@ public class TimedSemaphoreTest extends AbstractLangTest { /** * A test thread class that will be used by tests for triggering the * semaphore. The thread calls the semaphore a configurable number of times. - * When this is done, it can notify the main thread. + * When this is done, it cannotify the main thread. */ private static final class SemaphoreThread extends Thread { /** The semaphore. */