aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-11-01 23:13:07 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-11-02 00:41:52 +0100
commit4eea52f36b327218e921b3bba79fd392d5d16e41 (patch)
treee04387b5868e9faacc74a25853eb6dde64253767 /src/lombok/javac
parent6733b1ec567ef2cc647e690f7a4fabc85a541252 (diff)
downloadlombok-4eea52f36b327218e921b3bba79fd392d5d16e41.tar.gz
lombok-4eea52f36b327218e921b3bba79fd392d5d16e41.tar.bz2
lombok-4eea52f36b327218e921b3bba79fd392d5d16e41.zip
the static constructor generated by @Data wasn't public when compiling with javac (but it was with eclipse).
Fixes issue #63
Diffstat (limited to 'src/lombok/javac')
-rw-r--r--src/lombok/javac/handlers/HandleData.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/javac/handlers/HandleData.java b/src/lombok/javac/handlers/HandleData.java
index f1b395e1..eef7f78d 100644
--- a/src/lombok/javac/handlers/HandleData.java
+++ b/src/lombok/javac/handlers/HandleData.java
@@ -137,7 +137,7 @@ public class HandleData implements JavacAnnotationHandler<Data> {
TreeMaker maker = typeNode.getTreeMaker();
JCClassDecl type = (JCClassDecl) typeNode.get();
- JCModifiers mods = maker.Modifiers(Flags.STATIC);
+ JCModifiers mods = maker.Modifiers(Flags.STATIC | Flags.PUBLIC);
JCExpression returnType, constructorType;