diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-01-09 13:11:03 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-01-09 13:11:03 +0100 |
commit | 01754d914056b3baa0a6bfe3b20bf5c40f6a5199 (patch) | |
tree | e386e4f9f65f4147991c5b71be2532c093d0b1cc | |
parent | aaa876d3326f9ba1b411bbd9b341ff8a729e58ae (diff) | |
parent | 5a2fe6e61caf9024be29568b0b053f163c6f899e (diff) | |
download | lombok-01754d914056b3baa0a6bfe3b20bf5c40f6a5199.tar.gz lombok-01754d914056b3baa0a6bfe3b20bf5c40f6a5199.tar.bz2 lombok-01754d914056b3baa0a6bfe3b20bf5c40f6a5199.zip |
Merge branch '2is10-npe-warning'
-rw-r--r-- | src/core/lombok/Lombok.java | 5 |
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; } |