From 191a8011ef5e8ae2a4446b9b357e121272526364 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sun, 31 Jan 2021 14:33:19 +0100 Subject: [fixes #1064] Only show super()-warning if lombok generates a method --- .../before/DataWithOverrideEqualsAndHashCode.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java (limited to 'test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java') diff --git a/test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java b/test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java new file mode 100644 index 00000000..78138bbf --- /dev/null +++ b/test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java @@ -0,0 +1,18 @@ +import lombok.Data; + +class DataWithOverrideEqualsAndHashCode { + class Data1 { + + } + + @Data + class Data2 extends Data1 { + public int hashCode() { + return 42; + } + + public boolean equals(Object other) { + return false; + } + } +} \ No newline at end of file -- cgit