aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
diff options
context:
space:
mode:
authorJan Rieke <it@janrieke.de>2020-05-11 08:33:13 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-05-28 21:18:35 +0200
commitb767427f06b60dd236bc2c0d6ea41a0e8446fe08 (patch)
tree529b01c5c9748504dec950712d2872e38c08639f /src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
parent48b1f17f7ef0e0b3d90dee74ee1b490a02cacff2 (diff)
downloadlombok-b767427f06b60dd236bc2c0d6ea41a0e8446fe08.tar.gz
lombok-b767427f06b60dd236bc2c0d6ea41a0e8446fe08.tar.bz2
lombok-b767427f06b60dd236bc2c0d6ea41a0e8446fe08.zip
[SuperBuilder] don't warn on existing toBuilder method
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSuperBuilder.java')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSuperBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
index 455d40ed..7c8e4ea3 100644
--- a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
@@ -390,10 +390,10 @@ public class HandleSuperBuilder extends EclipseAnnotationHandler<SuperBuilder> {
// Add the toBuilder() method to the annotated class.
switch (methodExists(TO_BUILDER_METHOD_NAME_STRING, tdParent, 0)) {
case EXISTS_BY_USER:
- annotationNode.addWarning("Not generating toBuilder() as it already exists.");
break;
case NOT_EXISTS:
injectMethod(tdParent, generateToBuilderMethod(cfv, builderClassName, builderImplClassName, tdParent, typeParams, ast));
+ break;
default:
// Should not happen.
}