aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderWithNonNull.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-08-27 21:36:41 +0200
committerRoel Spilker <r.spilker@gmail.com>2018-08-27 21:36:41 +0200
commit0cb87873c2bc75478a5caf651af6148ed1d7e412 (patch)
tree49fbeb4ef47948bb678c2a55587246e0dc7758ad /test/transform/resource/before/SuperBuilderWithNonNull.java
parentecf754c87d3aaf1f788c9f00e5815ce7174f3722 (diff)
parent16fc34f36c77832b2bb7d383105c0b4c4dc5ddb6 (diff)
downloadlombok-0cb87873c2bc75478a5caf651af6148ed1d7e412.tar.gz
lombok-0cb87873c2bc75478a5caf651af6148ed1d7e412.tar.bz2
lombok-0cb87873c2bc75478a5caf651af6148ed1d7e412.zip
Merge branch 'superBuilderNonNull' of https://github.com/janrieke/lombok into janrieke-superBuilderNonNull
# Conflicts: # src/core/lombok/eclipse/handlers/HandleSuperBuilder.java # src/core/lombok/javac/handlers/HandleSuperBuilder.java # test/transform/resource/after-delombok/SuperBuilderWithDefaults.java # test/transform/resource/after-ecj/SuperBuilderWithDefaults.java
Diffstat (limited to 'test/transform/resource/before/SuperBuilderWithNonNull.java')
-rw-r--r--test/transform/resource/before/SuperBuilderWithNonNull.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderWithNonNull.java b/test/transform/resource/before/SuperBuilderWithNonNull.java
new file mode 100644
index 00000000..34668bbc
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderWithNonNull.java
@@ -0,0 +1,20 @@
+import java.util.List;
+
+public class SuperBuilderWithNonNull {
+ @lombok.experimental.SuperBuilder
+ public static class Parent {
+ @lombok.NonNull
+ @lombok.Builder.Default
+ final String nonNullParentField = "default";
+ }
+
+ @lombok.experimental.SuperBuilder
+ public static class Child extends Parent {
+ @lombok.NonNull
+ String nonNullChildField;
+ }
+
+ public static void test() {
+ Child x = Child.builder().nonNullChildField("child").nonNullParentField("parent").build();
+ }
+}