aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/Lombok.java
diff options
context:
space:
mode:
authorcnuessgens <christian@nuessgens.com>2018-01-18 21:18:14 +0100
committercnuessgens <christian@nuessgens.com>2018-01-18 21:18:14 +0100
commit1b6de01bf187def687cb0e757da4295b0790f0ac (patch)
treef86c0951a8669fb67689a92fd9059df7589d17da /src/core/lombok/Lombok.java
parentcdee2996514723dfbcf6ac177d82446acef260f3 (diff)
parent01754d914056b3baa0a6bfe3b20bf5c40f6a5199 (diff)
downloadlombok-1b6de01bf187def687cb0e757da4295b0790f0ac.tar.gz
lombok-1b6de01bf187def687cb0e757da4295b0790f0ac.tar.bz2
lombok-1b6de01bf187def687cb0e757da4295b0790f0ac.zip
Merge remote-tracking branch 'remotes/upstream/master'
Diffstat (limited to 'src/core/lombok/Lombok.java')
-rw-r--r--src/core/lombok/Lombok.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/lombok/Lombok.java b/src/core/lombok/Lombok.java
index 310b57e3..d86b6d1c 100644
--- a/src/core/lombok/Lombok.java
+++ b/src/core/lombok/Lombok.java
@@ -48,12 +48,11 @@ public class Lombok {
*/
public static RuntimeException sneakyThrow(Throwable t) {
if (t == null) throw new NullPointerException("t");
- Lombok.<RuntimeException>sneakyThrow0(t);
- return null;
+ return Lombok.<RuntimeException>sneakyThrow0(t);
}
@SuppressWarnings("unchecked")
- private static <T extends Throwable> void sneakyThrow0(Throwable t) throws T {
+ private static <T extends Throwable> T sneakyThrow0(Throwable t) throws T {
throw (T)t;
}