From 56616f3bec6d8eda8c2bcf0550490f0098fb7fed Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 17 Oct 2009 15:32:29 +0200 Subject: Fix: getters and setters for $foo fields (including our own $lock!) are now no longer generated. --- src/lombok/eclipse/handlers/HandleData.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lombok/eclipse/handlers/HandleData.java') diff --git a/src/lombok/eclipse/handlers/HandleData.java b/src/lombok/eclipse/handlers/HandleData.java index 555b311f..22538a53 100644 --- a/src/lombok/eclipse/handlers/HandleData.java +++ b/src/lombok/eclipse/handlers/HandleData.java @@ -87,6 +87,8 @@ public class HandleData implements EclipseAnnotationHandler { for (EclipseNode child : typeNode.down()) { if (child.getKind() != Kind.FIELD) continue; FieldDeclaration fieldDecl = (FieldDeclaration) child.get(); + //Skip fields that start with $ + if (fieldDecl.name.length > 0 && fieldDecl.name[0] == '$') continue; //Skip static fields. if ((fieldDecl.modifiers & ClassFileConstants.AccStatic) != 0) continue; boolean isFinal = (fieldDecl.modifiers & ClassFileConstants.AccFinal) != 0; -- cgit