From 42107d6a8ef41ed13565b041f00a3d9e6b6c1989 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Sun, 25 Jul 2010 02:17:54 +0200 Subject: Issue 133: @ToString on an inner class should print Outer.Inner instead of Inner --- test/transform/resource/after-delombok/DataOnLocalClass.java | 2 +- test/transform/resource/after-delombok/ToStringInner.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/transform/resource/after-delombok') diff --git a/test/transform/resource/after-delombok/DataOnLocalClass.java b/test/transform/resource/after-delombok/DataOnLocalClass.java index f5f5ef31..bb3f564d 100644 --- a/test/transform/resource/after-delombok/DataOnLocalClass.java +++ b/test/transform/resource/after-delombok/DataOnLocalClass.java @@ -90,7 +90,7 @@ class DataOnLocalClass2 { @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "InnerLocal(name=" + this.getName() + ")"; + return "Local.InnerLocal(name=" + this.getName() + ")"; } } @java.lang.SuppressWarnings("all") diff --git a/test/transform/resource/after-delombok/ToStringInner.java b/test/transform/resource/after-delombok/ToStringInner.java index fc376a77..bd8967b7 100644 --- a/test/transform/resource/after-delombok/ToStringInner.java +++ b/test/transform/resource/after-delombok/ToStringInner.java @@ -6,7 +6,7 @@ class ToStringOuter { @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "ToStringInner(y=" + this.y + ")"; + return "ToStringOuter.ToStringInner(y=" + this.y + ")"; } } static class ToStringStaticInner { @@ -14,7 +14,7 @@ class ToStringOuter { @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "ToStringStaticInner(y=" + this.y + ")"; + return "ToStringOuter.ToStringStaticInner(y=" + this.y + ")"; } } class ToStringMiddle { @@ -23,7 +23,7 @@ class ToStringOuter { @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "ToStringMoreInner(name=" + this.name + ")"; + return "ToStringOuter.ToStringMiddle.ToStringMoreInner(name=" + this.name + ")"; } } } -- cgit