aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-01-09 13:09:23 +0100
committerRoel Spilker <r.spilker@gmail.com>2018-01-09 13:09:23 +0100
commit371b9712df6688dd6447f4f829a347ee776e63ec (patch)
tree57ce4316b7c96f87579965b2e310989831d5e328 /src
parentaaa876d3326f9ba1b411bbd9b341ff8a729e58ae (diff)
parent9fb31973757a3ad4509c024ea50e77295c61cf89 (diff)
downloadlombok-371b9712df6688dd6447f4f829a347ee776e63ec.tar.gz
lombok-371b9712df6688dd6447f4f829a347ee776e63ec.tar.bz2
lombok-371b9712df6688dd6447f4f829a347ee776e63ec.zip
Merge branch 'npe-warning' of https://github.com/2is10/lombok into 2is10-npe-warning
Diffstat (limited to 'src')
-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..ae375637 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> RuntimeException sneakyThrow0(Throwable t) throws T {
throw (T)t;
}