aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/EqualsAndHashCodeWithOnParam.java
diff options
context:
space:
mode:
authorChristian Sterzl <christian.sterzl@gmail.com>2014-04-03 08:11:16 +0200
committerChristian Sterzl <christian.sterzl@gmail.com>2014-04-03 08:11:16 +0200
commit3d32cd85f174bbeb54ea0c102e029c42daf51931 (patch)
tree6d9144ca2fbd9167a85f68b6f761c6904e4d19ef /test/transform/resource/before/EqualsAndHashCodeWithOnParam.java
parent6afa3d2ec9ec18ed8ae5f6c5217b9fb1710c69c7 (diff)
downloadlombok-3d32cd85f174bbeb54ea0c102e029c42daf51931.tar.gz
lombok-3d32cd85f174bbeb54ea0c102e029c42daf51931.tar.bz2
lombok-3d32cd85f174bbeb54ea0c102e029c42daf51931.zip
Adding onParam to annotation @EqualsAndHashCode to add individual annotations to the parameters of equals and canEqual.
Diffstat (limited to 'test/transform/resource/before/EqualsAndHashCodeWithOnParam.java')
-rw-r--r--test/transform/resource/before/EqualsAndHashCodeWithOnParam.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/transform/resource/before/EqualsAndHashCodeWithOnParam.java b/test/transform/resource/before/EqualsAndHashCodeWithOnParam.java
new file mode 100644
index 00000000..160dfdc6
--- /dev/null
+++ b/test/transform/resource/before/EqualsAndHashCodeWithOnParam.java
@@ -0,0 +1,11 @@
+@interface Nullable {
+}
+
+@lombok.EqualsAndHashCode(onParam=@_{@Nullable})
+class EqualsAndHashCodeWithOnParam {
+ int x;
+ boolean[] y;
+ Object[] z;
+ String a;
+ String b;
+} \ No newline at end of file