diff options
Diffstat (limited to 'src')
6 files changed, 14 insertions, 14 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 { diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodPortal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodPortal.java index 02e4e123..b66bafbb 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodPortal.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodPortal.java @@ -64,7 +64,7 @@ public class PatchExtensionMethodPortal { //ignore, we don't have access to the correct ECJ classes, so lombok can't possibly //do anything useful here. } catch (IllegalAccessException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } catch (InvocationTargetException e) { throw Lombok.sneakyThrow(e.getCause()); } catch (NullPointerException e) { diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchValEclipse.java b/src/eclipseAgent/lombok/eclipse/agent/PatchValEclipse.java index 54b37341..7d5f36f4 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchValEclipse.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchValEclipse.java @@ -159,9 +159,9 @@ public class PatchValEclipse { Reflection.astConverterRecordNodes.invoke(converter, newAnnotation, valAnnotation); Reflection.astConverterRecordNodes.invoke(converter, newAnnotation.getTypeName(), valAnnotation.type); } catch (IllegalAccessException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } catch (InvocationTargetException e) { - Lombok.sneakyThrow(e.getCause()); + throw Lombok.sneakyThrow(e.getCause()); } modifiers.add(newAnnotation); } @@ -172,11 +172,11 @@ public class PatchValEclipse { try { modifier = Reflection.modifierConstructor.newInstance(ast); } catch (InstantiationException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } catch (IllegalAccessException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } catch (InvocationTargetException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } if (modifier != null) { @@ -191,11 +191,11 @@ public class PatchValEclipse { try { out = Reflection.markerAnnotationConstructor.newInstance(ast); } catch (InstantiationException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } catch (IllegalAccessException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } catch (InvocationTargetException e) { - Lombok.sneakyThrow(e); + throw Lombok.sneakyThrow(e); } if (out != null) { |