diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-01-31 14:33:19 +0100 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2021-01-31 14:33:38 +0100 |
commit | 191a8011ef5e8ae2a4446b9b357e121272526364 (patch) | |
tree | 0cafbd10414cb99507c7a69f9a882afcbfef898f /test/transform/resource/after-delombok/DataWithOverrideEqualsAndHashCode.java | |
parent | 3d3a4c322af4cf7f27679661efaa9dcd685165bb (diff) | |
download | lombok-191a8011ef5e8ae2a4446b9b357e121272526364.tar.gz lombok-191a8011ef5e8ae2a4446b9b357e121272526364.tar.bz2 lombok-191a8011ef5e8ae2a4446b9b357e121272526364.zip |
[fixes #1064] Only show super()-warning if lombok generates a method
Diffstat (limited to 'test/transform/resource/after-delombok/DataWithOverrideEqualsAndHashCode.java')
-rw-r--r-- | test/transform/resource/after-delombok/DataWithOverrideEqualsAndHashCode.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/DataWithOverrideEqualsAndHashCode.java b/test/transform/resource/after-delombok/DataWithOverrideEqualsAndHashCode.java new file mode 100644 index 00000000..7e84dda4 --- /dev/null +++ b/test/transform/resource/after-delombok/DataWithOverrideEqualsAndHashCode.java @@ -0,0 +1,25 @@ +class DataWithOverrideEqualsAndHashCode { + + class Data1 { + } + + class Data2 extends Data1 { + public int hashCode() { + return 42; + } + + public boolean equals(Object other) { + return false; + } + + @java.lang.SuppressWarnings("all") + public Data2() { + } + + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "DataWithOverrideEqualsAndHashCode.Data2()"; + } + } +} |