[new-style include/exclude] added new-style include/exclude support to EqualsAndHashCode.

This commit is contained in:
Reinier Zwitserloot committed 2018-05-15 00:50:58 +02:00
1 parent 323cc5267e
commit 649a7b72bf
15 files changed
+383 -225

No files matched your search

@@ -0,0 +1,16 @@
import lombok.EqualsAndHashCode;
@EqualsAndHashCode
public class EqualsAndHashCodeNewStyle {
@EqualsAndHashCode.Include int b;
double c;
int f;
@EqualsAndHashCode.Include int d;
@EqualsAndHashCode.Include int f() {
return 0;
}
int g;
@EqualsAndHashCode.Include(replaces = "g") long i() {
return 0;
}
@EqualsAndHashCode.Exclude int j;
}