From 94381d0e9a6871d252e363fa98500d50e8e71dd2 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 15 Jan 2020 00:52:53 +0100 Subject: [fixes #2335] ObtainVia(method=) on more than one arg would crash in javac --- .../before/I2335_BuilderMultipleObtainVia.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/transform/resource/before/I2335_BuilderMultipleObtainVia.java (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/I2335_BuilderMultipleObtainVia.java b/test/transform/resource/before/I2335_BuilderMultipleObtainVia.java new file mode 100644 index 00000000..ef3723c0 --- /dev/null +++ b/test/transform/resource/before/I2335_BuilderMultipleObtainVia.java @@ -0,0 +1,32 @@ +import lombok.Builder; + +@Builder +public class I2335_BuilderMultipleObtainVia { + private String theString; + private Long theLong; + + @Builder(toBuilder = true) + public I2335_BuilderMultipleObtainVia( + @Builder.ObtainVia(method = "getTheString") String theString, + @Builder.ObtainVia(method = "getTheLong") Long theLong + ) { + setTheString(theString); + setTheLong(theLong); + } + + public String getTheString() { + return theString; + } + + public Long getTheLong() { + return theLong; + } + + public void setTheString(String theString) { + this.theString = theString; + } + + public void setTheLong(Long theLong) { + this.theLong = theLong; + } +} -- cgit