diff options
Diffstat (limited to 'test/transform')
3 files changed, 39 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ToStringAutoSuper.java b/test/transform/resource/after-delombok/ToStringAutoSuper.java new file mode 100644 index 00000000..1fe59581 --- /dev/null +++ b/test/transform/resource/after-delombok/ToStringAutoSuper.java @@ -0,0 +1,15 @@ +class ToStringAutoSuperWithNoParent { + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "ToStringAutoSuperWithNoParent()"; + } +} + +class ToStringAutoSuperWithParent extends ToStringAutoSuperWithNoParent { + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "ToStringAutoSuperWithParent(super=" + super.toString() + ")"; + } +} diff --git a/test/transform/resource/after-ecj/ToStringAutoSuper.java b/test/transform/resource/after-ecj/ToStringAutoSuper.java new file mode 100644 index 00000000..fb468ddc --- /dev/null +++ b/test/transform/resource/after-ecj/ToStringAutoSuper.java @@ -0,0 +1,16 @@ +@lombok.ToString class ToStringAutoSuperWithNoParent { + ToStringAutoSuperWithNoParent() { + super(); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { + return "ToStringAutoSuperWithNoParent()"; + } +} +@lombok.ToString class ToStringAutoSuperWithParent extends ToStringAutoSuperWithNoParent { + ToStringAutoSuperWithParent() { + super(); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { + return (("ToStringAutoSuperWithParent(super=" + super.toString()) + ")"); + } +} diff --git a/test/transform/resource/before/ToStringAutoSuper.java b/test/transform/resource/before/ToStringAutoSuper.java new file mode 100644 index 00000000..e98664ba --- /dev/null +++ b/test/transform/resource/before/ToStringAutoSuper.java @@ -0,0 +1,8 @@ +//CONF: lombok.toString.callSuper = CALL +@lombok.ToString +class ToStringAutoSuperWithNoParent { +} + +@lombok.ToString +class ToStringAutoSuperWithParent extends ToStringAutoSuperWithNoParent { +} |