aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/EqualsAndHashCodeOfAndExclude.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2017-09-18 23:40:08 +0200
committerGitHub <noreply@github.com>2017-09-18 23:40:08 +0200
commit438095f5874015b96deee7a869e214b99316c329 (patch)
tree1b27341b29ef5a1ad9be5972b2b713491feb01d8 /test/transform/resource/after-ecj/EqualsAndHashCodeOfAndExclude.java
parentd9f66583225f265336d19198e35d47361aef35cc (diff)
parent1244721734a2025d1e3268f09846f9469f10f415 (diff)
downloadlombok-438095f5874015b96deee7a869e214b99316c329.tar.gz
lombok-438095f5874015b96deee7a869e214b99316c329.tar.bz2
lombok-438095f5874015b96deee7a869e214b99316c329.zip
Merge pull request #1311 from askoning/testsOnLinux
Several minor fixes to make 'ant test' work more reliably on other systems
Diffstat (limited to 'test/transform/resource/after-ecj/EqualsAndHashCodeOfAndExclude.java')
-rw-r--r--test/transform/resource/after-ecj/EqualsAndHashCodeOfAndExclude.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/EqualsAndHashCodeOfAndExclude.java b/test/transform/resource/after-ecj/EqualsAndHashCodeOfAndExclude.java
new file mode 100644
index 00000000..30de15cf
--- /dev/null
+++ b/test/transform/resource/after-ecj/EqualsAndHashCodeOfAndExclude.java
@@ -0,0 +1,46 @@
+final @lombok.EqualsAndHashCode(of = {"x"}) class EqualsAndHashCodeOf {
+ int x;
+ int y;
+ EqualsAndHashCodeOf() {
+ super();
+ }
+ 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 EqualsAndHashCodeOf)))
+ return false;
+ final EqualsAndHashCodeOf other = (EqualsAndHashCodeOf) o;
+ if ((this.x != other.x))
+ return false;
+ return true;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = ((result * PRIME) + this.x);
+ return result;
+ }
+}
+final @lombok.EqualsAndHashCode(exclude = {"y"}) class EqualsAndHashCodeExclude {
+ int x;
+ int y;
+ EqualsAndHashCodeExclude() {
+ super();
+ }
+ 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 EqualsAndHashCodeExclude)))
+ return false;
+ final EqualsAndHashCodeExclude other = (EqualsAndHashCodeExclude) o;
+ if ((this.x != other.x))
+ return false;
+ return true;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = ((result * PRIME) + this.x);
+ return result;
+ }
+}