aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-04-01 23:44:42 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-04-01 23:44:55 +0200
commit735ac6e8c256f667b2d742c76029868f086a99d4 (patch)
tree29415fc1dc03d077888fd5a008358e38eb380ed2 /src/core/lombok
parent9c8098d35be368df3ee3880ab2160a0307cb5b14 (diff)
downloadlombok-735ac6e8c256f667b2d742c76029868f086a99d4.tar.gz
lombok-735ac6e8c256f667b2d742c76029868f086a99d4.tar.bz2
lombok-735ac6e8c256f667b2d742c76029868f086a99d4.zip
all usage of sneakyThrow is now throw sneakyThrow as it should be.
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/core/AST.java2
-rw-r--r--src/core/lombok/eclipse/HandlerLibrary.java2
-rw-r--r--src/core/lombok/eclipse/handlers/HandlePrintAST.java4
-rw-r--r--src/core/lombok/javac/handlers/HandlePrintAST.java2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/core/lombok/core/AST.java b/src/core/lombok/core/AST.java
index 50eeb399..18bae175 100644
--- a/src/core/lombok/core/AST.java
+++ b/src/core/lombok/core/AST.java
@@ -387,7 +387,7 @@ public abstract class AST<A extends AST<A, L, N>, L extends LombokNode<A, L, N>,
buildWithCollection(nodeType, o, list, fa.dim);
}
} catch (IllegalAccessException e) {
- sneakyThrow(e);
+ throw sneakyThrow(e);
}
}
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<PrintAST> {
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<PrintAST> {
}
}
}
-} \ No newline at end of file
+}
diff --git a/src/core/lombok/javac/handlers/HandlePrintAST.java b/src/core/lombok/javac/handlers/HandlePrintAST.java
index 2c229f2b..9a52b9d9 100644
--- a/src/core/lombok/javac/handlers/HandlePrintAST.java
+++ b/src/core/lombok/javac/handlers/HandlePrintAST.java
@@ -49,7 +49,7 @@ public class HandlePrintAST extends JavacAnnotationHandler<PrintAST> {
if (fileName.length() > 0) try {
stream = new PrintStream(new File(fileName));
} catch (FileNotFoundException e) {
- Lombok.sneakyThrow(e);
+ throw Lombok.sneakyThrow(e);
}
try {