From 0a2ed8197aa0a02249371f04cce7366b5e6b27a2 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 29 Jun 2016 00:26:54 +0200 Subject: Potential solution for issue #913 --- src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/eclipseAgent') diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java index 3a4e22c5..02760e35 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java @@ -701,8 +701,7 @@ public class PatchDelegate { private static void addAllMethodBindings0(List list, TypeBinding binding, Set banList, char[] fieldName, ASTNode responsible) throws DelegateRecursion { if (binding instanceof SourceTypeBinding) { ClassScope scope = ((SourceTypeBinding) binding).scope; - if (scope == null) return; - scope.environment().globalOptions.storeAnnotations = true; + if (scope != null) scope.environment().globalOptions.storeAnnotations = true; } if (binding == null) return; -- cgit