diff options
author | Roel Spilker <r.spilker@gmail.com> | 2011-08-16 00:18:32 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2011-08-16 00:18:32 +0200 |
commit | 844b36b47c9fec02473b5d27c74c10f10d5c5fc2 (patch) | |
tree | 66780360206b4959608b4e411e29391f0ff896da /src/core/lombok/javac/handlers/HandleGetter.java | |
parent | b64016cd901985911df3a8f1e3bbf8d55b922a26 (diff) | |
download | lombok-844b36b47c9fec02473b5d27c74c10f10d5c5fc2.tar.gz lombok-844b36b47c9fec02473b5d27c74c10f10d5c5fc2.tar.bz2 lombok-844b36b47c9fec02473b5d27c74c10f10d5c5fc2.zip |
Renamed Javac.getCTCint to getCtcInt
Made delombok work with multiple JavaCompiler's on the classpath
Made @Getter(lazy=true) work on javac7 (fixes issue#223)
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleGetter.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleGetter.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/lombok/javac/handlers/HandleGetter.java b/src/core/lombok/javac/handlers/HandleGetter.java index 0be00d89..a7e357ad 100644 --- a/src/core/lombok/javac/handlers/HandleGetter.java +++ b/src/core/lombok/javac/handlers/HandleGetter.java @@ -260,14 +260,14 @@ public class HandleGetter extends JavacAnnotationHandler<Getter> { private static final java.util.Map<Integer, String> TYPE_MAP; static { Map<Integer, String> m = new HashMap<Integer, String>(); - m.put(Javac.getCTCint(TypeTags.class, "INT"), "java.lang.Integer"); - m.put(Javac.getCTCint(TypeTags.class, "DOUBLE"), "java.lang.Double"); - m.put(Javac.getCTCint(TypeTags.class, "FLOAT"), "java.lang.Float"); - m.put(Javac.getCTCint(TypeTags.class, "SHORT"), "java.lang.Short"); - m.put(Javac.getCTCint(TypeTags.class, "BYTE"), "java.lang.Byte"); - m.put(Javac.getCTCint(TypeTags.class, "LONG"), "java.lang.Long"); - m.put(Javac.getCTCint(TypeTags.class, "BOOLEAN"), "java.lang.Boolean"); - m.put(Javac.getCTCint(TypeTags.class, "CHAR"), "java.lang.Character"); + m.put(Javac.getCtcInt(TypeTags.class, "INT"), "java.lang.Integer"); + m.put(Javac.getCtcInt(TypeTags.class, "DOUBLE"), "java.lang.Double"); + m.put(Javac.getCtcInt(TypeTags.class, "FLOAT"), "java.lang.Float"); + m.put(Javac.getCtcInt(TypeTags.class, "SHORT"), "java.lang.Short"); + m.put(Javac.getCtcInt(TypeTags.class, "BYTE"), "java.lang.Byte"); + m.put(Javac.getCtcInt(TypeTags.class, "LONG"), "java.lang.Long"); + m.put(Javac.getCtcInt(TypeTags.class, "BOOLEAN"), "java.lang.Boolean"); + m.put(Javac.getCtcInt(TypeTags.class, "CHAR"), "java.lang.Character"); TYPE_MAP = Collections.unmodifiableMap(m); } @@ -327,7 +327,7 @@ public class HandleGetter extends JavacAnnotationHandler<Getter> { innerIfStatements.append(statement); } - JCBinary isNull = maker.Binary(JCTree.EQ, maker.Ident(valueName), maker.Literal(Javac.getCTCint(TypeTags.class, "BOT"), null)); + JCBinary isNull = maker.Binary(Javac.getCtcInt(JCTree.class, "EQ"), maker.Ident(valueName), maker.Literal(Javac.getCtcInt(TypeTags.class, "BOT"), null)); JCIf ifStatement = maker.If(isNull, maker.Block(0, innerIfStatements.toList()), null); synchronizedStatements.append(ifStatement); } @@ -335,7 +335,7 @@ public class HandleGetter extends JavacAnnotationHandler<Getter> { synchronizedStatement = maker.Synchronized(createFieldAccessor(maker, fieldNode, FieldAccess.ALWAYS_FIELD), maker.Block(0, synchronizedStatements.toList())); } - JCBinary isNull = maker.Binary(JCTree.EQ, maker.Ident(valueName), maker.Literal(Javac.getCTCint(TypeTags.class, "BOT"), null)); + JCBinary isNull = maker.Binary(Javac.getCtcInt(JCTree.class, "EQ"), maker.Ident(valueName), maker.Literal(Javac.getCtcInt(TypeTags.class, "BOT"), null)); JCIf ifStatement = maker.If(isNull, maker.Block(0, List.<JCStatement>of(synchronizedStatement)), null); statements.append(ifStatement); } |