From ea219cd7ce76fa1140901050cce73e58f9ddb6d1 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 8 Jun 2016 22:40:53 +0200 Subject: add test to verify config key callSuper=call works with Value --- .../resource/after-ecj/ValueCallSuper.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 test/transform/resource/after-ecj/ValueCallSuper.java (limited to 'test/transform/resource/after-ecj') diff --git a/test/transform/resource/after-ecj/ValueCallSuper.java b/test/transform/resource/after-ecj/ValueCallSuper.java new file mode 100644 index 00000000..ecd4a1ef --- /dev/null +++ b/test/transform/resource/after-ecj/ValueCallSuper.java @@ -0,0 +1,34 @@ +class ValueParent { + ValueParent() { + super(); + } +} +final @lombok.Value class ValueCallSuper extends ValueParent { + public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") boolean equals(final java.lang.Object o) { + if ((o == this)) + return true; + if ((! (o instanceof ValueCallSuper))) + return false; + final ValueCallSuper other = (ValueCallSuper) o; + if ((! other.canEqual((java.lang.Object) this))) + return false; + if ((! super.equals(o))) + return false; + return true; + } + protected @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") boolean canEqual(final java.lang.Object other) { + return (other instanceof ValueCallSuper); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int hashCode() { + final int PRIME = 59; + int result = 1; + result = ((result * PRIME) + super.hashCode()); + return result; + } + public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() { + return "ValueCallSuper()"; + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") ValueCallSuper() { + super(); + } +} -- cgit