diff options
author | Roel Spilker <r.spilker@gmail.com> | 2017-12-04 21:41:03 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-12-04 22:28:21 +0100 |
commit | 003832670e5115fc0cd93f46f4f48482048ee078 (patch) | |
tree | 584a9a93ba3cb67aa0fa9b40c8c132bf20bc8192 /test/transform/resource/after-ecj | |
parent | 602877e6942fd12852a7b03cd3e30e76d5440df6 (diff) | |
download | lombok-003832670e5115fc0cd93f46f4f48482048ee078.tar.gz lombok-003832670e5115fc0cd93f46f4f48482048ee078.tar.bz2 lombok-003832670e5115fc0cd93f46f4f48482048ee078.zip |
delombok no longer prints generated outer-instance constructor parameters, fixes #1521
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r-- | test/transform/resource/after-ecj/InnerClass.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/InnerClass.java b/test/transform/resource/after-ecj/InnerClass.java new file mode 100644 index 00000000..32004225 --- /dev/null +++ b/test/transform/resource/after-ecj/InnerClass.java @@ -0,0 +1,56 @@ +class A { + @lombok.AllArgsConstructor class B { + String s; + public @java.lang.SuppressWarnings("all") B(final String s) { + super(); + this.s = s; + } + } + A() { + super(); + } +} +class C { + final @lombok.Value class D { + private final A a; + A.B test(String s) { + return a.new B(s) { + x(<no type> $anonymous0) { + super($anonymous0); + } +}; + } + public @java.lang.SuppressWarnings("all") A getA() { + return this.a; + } + public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) { + if ((o == this)) + return true; + if ((! (o instanceof C.D))) + return false; + final C.D other = (C.D) o; + final java.lang.Object this$a = this.getA(); + final java.lang.Object other$a = other.getA(); + if (((this$a == null) ? (other$a != null) : (! this$a.equals(other$a)))) + return false; + return true; + } + public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { + final int PRIME = 59; + int result = 1; + final java.lang.Object $a = this.getA(); + result = ((result * PRIME) + (($a == null) ? 43 : $a.hashCode())); + return result; + } + public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { + return (("C.D(a=" + this.getA()) + ")"); + } + public @java.lang.SuppressWarnings("all") D(final A a) { + super(); + this.a = a; + } + } + C() { + super(); + } +} |