From 735ac6e8c256f667b2d742c76029868f086a99d4 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 1 Apr 2014 23:44:42 +0200 Subject: all usage of sneakyThrow is now throw sneakyThrow as it should be. --- src/core/lombok/eclipse/HandlerLibrary.java | 2 +- src/core/lombok/eclipse/handlers/HandlePrintAST.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/lombok/eclipse') diff --git a/src/core/lombok/eclipse/HandlerLibrary.java b/src/core/lombok/eclipse/HandlerLibrary.java index 9726255c..3e5a557f 100644 --- a/src/core/lombok/eclipse/HandlerLibrary.java +++ b/src/core/lombok/eclipse/HandlerLibrary.java @@ -173,7 +173,7 @@ public class HandlerLibrary { } } } catch (IOException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } } diff --git a/src/core/lombok/eclipse/handlers/HandlePrintAST.java b/src/core/lombok/eclipse/handlers/HandlePrintAST.java index 65cda98a..0b61bc4d 100644 --- a/src/core/lombok/eclipse/handlers/HandlePrintAST.java +++ b/src/core/lombok/eclipse/handlers/HandlePrintAST.java @@ -50,7 +50,7 @@ public class HandlePrintAST extends EclipseAnnotationHandler { if (fileName.length() > 0) try { stream = new PrintStream(new File(fileName)); } catch (FileNotFoundException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } try { annotationNode.up().traverse(new EclipseASTVisitor.Printer(annotation.getInstance().printContent(), stream, annotation.getInstance().printPositions())); @@ -64,4 +64,4 @@ public class HandlePrintAST extends EclipseAnnotationHandler { } } } -} \ No newline at end of file +} -- cgit