aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/EqualsAndHashCodeWithExistingMethods.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/EqualsAndHashCodeWithExistingMethods.java')
-rw-r--r--test/transform/resource/after-ecj/EqualsAndHashCodeWithExistingMethods.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/EqualsAndHashCodeWithExistingMethods.java b/test/transform/resource/after-ecj/EqualsAndHashCodeWithExistingMethods.java
new file mode 100644
index 00000000..50b219f1
--- /dev/null
+++ b/test/transform/resource/after-ecj/EqualsAndHashCodeWithExistingMethods.java
@@ -0,0 +1,27 @@
+@lombok.EqualsAndHashCode class EqualsAndHashCodeWithExistingMethods {
+ int x;
+ EqualsAndHashCodeWithExistingMethods() {
+ super();
+ }
+ public int hashCode() {
+ return 42;
+ }
+}
+final @lombok.EqualsAndHashCode class EqualsAndHashCodeWithExistingMethods2 {
+ int x;
+ EqualsAndHashCodeWithExistingMethods2() {
+ super();
+ }
+ public boolean equals(Object other) {
+ return false;
+ }
+}
+final @lombok.EqualsAndHashCode(callSuper = true) class EqualsAndHashCodeWithExistingMethods3 extends EqualsAndHashCodeWithExistingMethods {
+ int x;
+ EqualsAndHashCodeWithExistingMethods3() {
+ super();
+ }
+ public boolean canEqual(Object other) {
+ return true;
+ }
+} \ No newline at end of file