Merge pull request #3698 from stevebosman/fix-sneaky-throws-doc

Minor correction to SneakyThrows javadoc
This commit is contained in:
Reinier Zwitserloot authored and GitHub committed 2024-06-28 02:24:47 +02:00
commit 1384244b13
1 file changed
+2 -2
+2 -2
View File
@@ -27,10 +27,10 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @SneakyThrow will avoid javac's insistence that you either catch or throw onward any checked exceptions that
* @SneakyThrows will avoid javac's insistence that you either catch or throw onward any checked exceptions that
* statements in your method body declare they generate.
* <p>
* &#64;SneakyThrow does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the listed
* &#64;SneakyThrows does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the listed
* checked exception types. The JVM does not check for the consistency of the checked exception system; javac does,
* and this annotation lets you opt out of its mechanism.
* <p>