aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/apt
diff options
context:
space:
mode:
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);
}