aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers/HandleData.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-17 15:32:29 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-17 15:35:05 +0200
commit56616f3bec6d8eda8c2bcf0550490f0098fb7fed (patch)
tree224718bcdf3855508843ceca56fd60deb95b52f2 /src/lombok/eclipse/handlers/HandleData.java
parent4bf8ee3f67f7c076421b6c6a396c85e7bd794749 (diff)
downloadlombok-56616f3bec6d8eda8c2bcf0550490f0098fb7fed.tar.gz
lombok-56616f3bec6d8eda8c2bcf0550490f0098fb7fed.tar.bz2
lombok-56616f3bec6d8eda8c2bcf0550490f0098fb7fed.zip
Fix: getters and setters for $foo fields (including our own $lock!) are now no longer generated.
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleData.java')
-rw-r--r--src/lombok/eclipse/handlers/HandleData.java2
1 files changed, 2 insertions, 0 deletions
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<Data> {
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;