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