use T instead of RuntimeException

This commit is contained in:
Roel Spilker committed 2018-01-09 13:10:18 +01:00
1 parent 371b9712df
commit 5a2fe6e61c
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}