mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 02:14:44 +00:00
Added link to sun bug db which contains a feature request that is analogous to @SneakyThrows, except with a keyword.
This commit is contained in:
1 parent
7483dd4345
commit
3f3c0cb749
1 file changed
+2
@@ -54,6 +54,8 @@
|
||||
<div class="overview">
|
||||
<h3>Small print</h3><div class="smallprint">
|
||||
<p>
|
||||
<code>@SneakyThrows</code> is an implementation of this feature request: <a href="http://bugs.sun.com/view_bug.do?bug_id=6534270">http://bugs.sun.com/view_bug.do?bug_id=6534270</a>.
|
||||
</p><p>
|
||||
Because <code>@SneakyThrows</code> is an implementation detail and not part of your method signature, it is an error if you try to
|
||||
declare a checked exception as sneakily thrown when you don't call any methods that throw this exception. (Doing so is perfectly legal
|
||||
for <code>throws</code> statements to accomodate subclasses). Similarly, <code>@SneakyThrows</code> does not inherit.
|
||||
|
||||
Reference in new issue
Block a user