forked from projectlombok/lombok
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial fix for projectlombok#163 "Overloading of Builder Method not …
…Handled Correctly" added check for existed builderMethods
- Loading branch information
Michail Plushnikov
committed
Jan 12, 2016
1 parent
eed1f9c
commit b5910fc
Showing
5 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
test-manual/lombok/src/main/java/de/plushnikov/builder/issue163/LombokTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package de.plushnikov.builder.issue163; | ||
|
||
import lombok.Builder; | ||
import lombok.Value; | ||
|
||
@Value | ||
@Builder(builderClassName = "Builder", builderMethodName = "newBuilder") | ||
public final class LombokTest { | ||
|
||
private final String field; | ||
private final String otherField; | ||
|
||
/** | ||
* LombokTest Builder. | ||
* | ||
* @param field the field value | ||
* @return a new builder instance with field set | ||
*/ | ||
public static Builder newBuilder(final String field) { | ||
return new Builder().field(field); | ||
} | ||
} |