aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2016-06-29 00:26:54 +0200
committerRoel Spilker <r.spilker@gmail.com>2016-06-29 00:36:50 +0200
commit0a2ed8197aa0a02249371f04cce7366b5e6b27a2 (patch)
tree257e798e314e1d7369cd2b8bb57bdec6942d0e48 /src/eclipseAgent
parentb3ae90b273d7d926626546c367f7fbe6d25a6890 (diff)
downloadlombok-0a2ed8197aa0a02249371f04cce7366b5e6b27a2.tar.gz
lombok-0a2ed8197aa0a02249371f04cce7366b5e6b27a2.tar.bz2
lombok-0a2ed8197aa0a02249371f04cce7366b5e6b27a2.zip
Potential solution for issue #913
Diffstat (limited to 'src/eclipseAgent')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java3
1 files changed, 1 insertions, 2 deletions
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<BindingTuple> list, TypeBinding binding, Set<String> 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;