From d3ae4d994880a1a087108275e101ab4fbb43f071 Mon Sep 17 00:00:00 2001 From: daliclass Date: Sun, 5 May 2019 22:28:48 +0100 Subject: [Feature] staticConstructor should use already defined private constructor if available --- test/transform/resource/before/ValueStaticConstructorOf.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/transform/resource/before/ValueStaticConstructorOf.java (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/ValueStaticConstructorOf.java b/test/transform/resource/before/ValueStaticConstructorOf.java new file mode 100644 index 00000000..ac857ffd --- /dev/null +++ b/test/transform/resource/before/ValueStaticConstructorOf.java @@ -0,0 +1,12 @@ +import lombok.Value; +@Value(staticConstructor = "of") +public class ValueStaticConstructorOf { + + String name; + Double price; + + private ValueStaticConstructorOf(String name, Double price) { + this.name = name; + this.price = price; + } +} -- cgit