diff options
author | Roel Spilker <r.spilker@gmail.com> | 2017-06-19 23:28:18 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-06-19 23:28:18 +0200 |
commit | 077ab5aed59a344902f4a6255f6aa686a9698533 (patch) | |
tree | f0b5b54ca79411d814b8b3921e2c023de4401389 /test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java | |
parent | 70206440accb14467e1d0ccfa7da959a254ef6a9 (diff) | |
download | lombok-077ab5aed59a344902f4a6255f6aa686a9698533.tar.gz lombok-077ab5aed59a344902f4a6255f6aa686a9698533.tar.bz2 lombok-077ab5aed59a344902f4a6255f6aa686a9698533.zip |
Add test to make sure we don't add a super call if the type explicitly extends Object
Diffstat (limited to 'test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java')
-rw-r--r-- | test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java index 43c271fa..333b6b58 100644 --- a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java +++ b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java @@ -1,3 +1,27 @@ +class EqualsAndHashCodeConfigKeys2Object extends Object { + @java.lang.Override + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public boolean equals(final java.lang.Object o) { + if (o == this) return true; + if (!(o instanceof EqualsAndHashCodeConfigKeys2Object)) return false; + final EqualsAndHashCodeConfigKeys2Object other = (EqualsAndHashCodeConfigKeys2Object) o; + if (!other.canEqual((java.lang.Object) this)) return false; + return true; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + protected boolean canEqual(final java.lang.Object other) { + return other instanceof EqualsAndHashCodeConfigKeys2Object; + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public int hashCode() { + int result = 1; + return result; + } +} class EqualsAndHashCodeConfigKeys2Parent { @java.lang.Override @java.lang.SuppressWarnings("all") |