mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 18:15:59 +00:00
use T instead of RuntimeException
This commit is contained in:
1 parent
371b9712df
commit
5a2fe6e61c
1 file changed
+1
-1
@@ -52,7 +52,7 @@ public class Lombok {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <T extends Throwable> RuntimeException sneakyThrow0(Throwable t) throws T {
|
||||
private static <T extends Throwable> T sneakyThrow0(Throwable t) throws T {
|
||||
throw (T)t;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user