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.sneakyThrow0(t); - return null; + return Lombok.sneakyThrow0(t); } @SuppressWarnings("unchecked") - private static void sneakyThrow0(Throwable t) throws T { + private static RuntimeException sneakyThrow0(Throwable t) throws T { throw (T)t; }