aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/apt
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-08 23:31:50 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-08 23:31:50 +0200
commit525211b872b982b880aa2bed5e263ec582593f0d (patch)
treeff41dde691af184f2b394e1b2364d7f44c48e929 /src/lombok/apt
parent9314db916d13c3642b60f3aad25d765e182a198c (diff)
downloadlombok-525211b872b982b880aa2bed5e263ec582593f0d.tar.gz
lombok-525211b872b982b880aa2bed5e263ec582593f0d.tar.bz2
lombok-525211b872b982b880aa2bed5e263ec582593f0d.zip
@Getter now TOTALLY WORKS in eclipse! W00t!
Also made the handling of lombokisms in eclipse a little more frameworky, though there's still plenty to be done.
Diffstat (limited to 'src/lombok/apt')
-rw-r--r--src/lombok/apt/HandleGetter_javac.java2
-rw-r--r--src/lombok/apt/PKG.java3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/lombok/apt/HandleGetter_javac.java b/src/lombok/apt/HandleGetter_javac.java
index d726867c..bfa2746d 100644
--- a/src/lombok/apt/HandleGetter_javac.java
+++ b/src/lombok/apt/HandleGetter_javac.java
@@ -54,8 +54,6 @@ class HandleGetter_javac extends HandlerForCompiler<Getter> {
MethodTree getterMethod = createGetter(element, treeMaker, nameTable);
javacClassTree.defs = javacClassTree.defs.append((JCTree)getterMethod);
-
- messager.printMessage(Diagnostic.Kind.WARNING, "Generated a getter for this field", element);
}
private MethodTree createGetter(Element field, TreeMaker treeMaker, Name.Table nameTable) {
diff --git a/src/lombok/apt/PKG.java b/src/lombok/apt/PKG.java
index bbe13379..cf04efaf 100644
--- a/src/lombok/apt/PKG.java
+++ b/src/lombok/apt/PKG.java
@@ -52,8 +52,7 @@ class PKG {
static String toGetterName(Element field) {
CharSequence fieldName = field.getSimpleName();
- boolean isBoolean = (field.asType().getKind() == TypeKind.BOOLEAN ||
- "java.lang.Boolean".equals(field.asType().toString()));
+ boolean isBoolean = field.asType().getKind() == TypeKind.BOOLEAN;
return TransformationsUtil.toGetterName(fieldName, isBoolean);
}