Javadoc spelling

This commit is contained in:
Gary Gregory 2023-11-26 15:53:54 -05:00
parent f62bfa0755
commit 63905f6164
3 changed files with 9 additions and 9 deletions

View File

@ -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()));

View File

@ -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) {

View File

@ -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 static void removeCommonFrames(final List<String> causeFrames, final List
* }
* </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 static void removeCommonFrames(final List<String> 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 extends Throwable> T throwUnchecked(final T throwable) {
* @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)