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. --- .../lombok/eclipse/agent/PatchExtensionMethodPortal.java | 2 +- .../lombok/eclipse/agent/PatchValEclipse.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/eclipseAgent/lombok') 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) { -- cgit