From 63905f61648aa97c106ae0a65944450ebcdc17d9 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 26 Nov 2023 15:53:54 -0500 Subject: [PATCH] Javadoc spelling --- .../java/org/apache/commons/lang3/JavaVersion.java | 2 +- .../java/org/apache/commons/lang3/SystemUtils.java | 2 +- .../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 static File getJavaIoTmpDir() { /** * 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 { * } * *

- * 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. *

@@ -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 static void removeCommonFrames(final List causeFrames, final List * } * *

- * 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. *

@@ -867,7 +867,7 @@ public static void removeCommonFrames(final List causeFrames, final List * @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 static T throwUnchecked(final T throwable) { * @param 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)