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 63905f616 Javadoc spelling 63905f616 is described below commit 63905f61648aa97c106ae0a65944450ebcdc17d9 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Nov 26 15:53:54 2023 -0500 Javadoc spelling --- src/main/java/org/apache/commons/lang3/JavaVersion.java | 2 +- src/main/java/org/apache/commons/lang3/SystemUtils.java | 2 +- .../org/apache/commons/lang3/exception/ExceptionUtils.java | 14 +++++++------- 3 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 a0b828429..15cbb14e6 100644 --- a/src/main/java/org/apache/commons/lang3/JavaVersion.java +++ b/src/main/java/org/apache/commons/lang3/JavaVersion.java @@ -172,7 +172,7 @@ public enum JavaVersion { JAVA_21(21, "21"), /** - * The most recent java version. Mainly introduced to avoid to break when a new version of Java is used. + * The most recent Java version. Mainly introduced to avoid to break when a new version of Java is used. */ JAVA_RECENT(maxVersion(), Float.toString(maxVersion())); diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index d6035744b..13190bbbd 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1945,7 +1945,7 @@ public class SystemUtils { /** * Decides if the Java version matches. * - * @param versionPrefix the prefix for the java version + * @param versionPrefix the prefix for the Java version * @return true if matches, or false if not or can't determine */ private static boolean getJavaVersionMatches(final String versionPrefix) { diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java index b9ac4e990..4e2d8b9fd 100644 --- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java +++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java @@ -107,14 +107,14 @@ public class ExceptionUtils { * } * </pre> * <p> - * One downside to using this approach is that the java compiler will not + * One downside to using this approach is that the Java compiler will not * allow invoking code to specify a checked exception in a catch clause * unless there is some code path within the try block that has invoked a * method declared with that checked exception. If the invoking site wishes * to catch the shaded checked exception, it must either invoke the shaded * code through a method re-declaring the desired checked exception, or * catch Exception and use the {@code instanceof} operator. Either of these - * techniques are required when interacting with non-java jvm code such as + * techniques are required when interacting with non-Java jvm code such as * Jython, Scala, or Groovy, since these languages do not consider any * exceptions as checked. * </p> @@ -125,7 +125,7 @@ public class ExceptionUtils { * @return Never actually returned, this generic type matches any type * which the calling site requires. "Returning" the results of this * method, as done in the propagateExample above, will satisfy the - * java compiler requirement that all code paths return a value. + * Java compiler requirement that all code paths return a value. * @since 3.14.0 * @see #wrapAndThrow(Throwable) */ @@ -849,14 +849,14 @@ public class ExceptionUtils { * } * </pre> * <p> - * One downside to using this approach is that the java compiler will not + * One downside to using this approach is that the Java compiler will not * allow invoking code to specify a checked exception in a catch clause * unless there is some code path within the try block that has invoked a * method declared with that checked exception. If the invoking site wishes * to catch the shaded checked exception, it must either invoke the shaded * code through a method re-declaring the desired checked exception, or * catch Exception and use the {@code instanceof} operator. Either of these - * techniques are required when interacting with non-java jvm code such as + * techniques are required when interacting with non-Java jvm code such as * Jython, Scala, or Groovy, since these languages do not consider any * exceptions as checked. * </p> @@ -867,7 +867,7 @@ public class ExceptionUtils { * @return Never actually returned, this generic type matches any type * which the calling site requires. "Returning" the results of this * method, as done in the propagateExample above, will satisfy the - * java compiler requirement that all code paths return a value. + * Java compiler requirement that all code paths return a value. * @since 3.5 * @see #wrapAndThrow(Throwable) * @deprecated Use {@link #asRuntimeException(Throwable)}. @@ -1080,7 +1080,7 @@ public class ExceptionUtils { * @param <R> The type of the returned value. * @return Never actually returned, this generic type matches any type * which the calling site requires. "Returning" the results of this - * method will satisfy the java compiler requirement that all code + * method will satisfy the Java compiler requirement that all code * paths return a value. * @since 3.5 * @see #asRuntimeException(Throwable)