diff options
author | Jan Rieke <rieke@subshell.com> | 2018-04-27 13:36:08 +0200 |
---|---|---|
committer | Jan Rieke <rieke@subshell.com> | 2018-04-27 13:36:08 +0200 |
commit | 4f5d5b108dada037137c209e3b8a3b86af8643ae (patch) | |
tree | 0305713795dcb04b4591efb24b11b4b9f5d94298 /test/transform/resource/after-delombok | |
parent | 1dff81a0e0841f15a6ba805e022eb668e07335b4 (diff) | |
download | lombok-4f5d5b108dada037137c209e3b8a3b86af8643ae.tar.gz lombok-4f5d5b108dada037137c209e3b8a3b86af8643ae.tar.bz2 lombok-4f5d5b108dada037137c209e3b8a3b86af8643ae.zip |
fixed javac tests (toString calls super now)
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/SuperBuilderBasic.java | 5 | ||||
-rw-r--r-- | test/transform/resource/after-delombok/SuperBuilderWithGenerics.java | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/transform/resource/after-delombok/SuperBuilderBasic.java b/test/transform/resource/after-delombok/SuperBuilderBasic.java index ed1f9bdc..da745b58 100644 --- a/test/transform/resource/after-delombok/SuperBuilderBasic.java +++ b/test/transform/resource/after-delombok/SuperBuilderBasic.java @@ -1,6 +1,7 @@ import java.util.List;
public class SuperBuilderBasic {
+ @lombok.experimental.SuperBuilder
public static class Parent {
int field1;
List<String> items;
@@ -97,7 +98,7 @@ public class SuperBuilderBasic { }
}
-
+ @lombok.experimental.SuperBuilder
public static class Child extends Parent {
double field3;
@@ -130,7 +131,7 @@ public class SuperBuilderBasic { @java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
- return "SuperBuilderBasic.Child.ChildBuilder(field3=" + this.field3 + ")";
+ return "SuperBuilderBasic.Child.ChildBuilder(super=" + super.toString() + ", field3=" + this.field3 + ")";
}
}
diff --git a/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java b/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java index bfd6e4b7..ff080f6c 100644 --- a/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java +++ b/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java @@ -1,6 +1,7 @@ import java.util.List;
public class SuperBuilderWithGenerics {
+ @lombok.experimental.SuperBuilder
public static class Parent<A> {
A field1;
List<String> items;
@@ -97,7 +98,7 @@ public class SuperBuilderWithGenerics { }
}
-
+ @lombok.experimental.SuperBuilder
public static class Child<A> extends Parent<A> {
double field3;
@@ -130,7 +131,7 @@ public class SuperBuilderWithGenerics { @java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
- return "SuperBuilderWithGenerics.Child.ChildBuilder(field3=" + this.field3 + ")";
+ return "SuperBuilderWithGenerics.Child.ChildBuilder(super=" + super.toString() + ", field3=" + this.field3 + ")";
}
}
|