diff options
author | Roel Spilker <Roels@topdesk.com> | 2019-07-08 22:00:03 +0200 |
---|---|---|
committer | Roel Spilker <Roels@topdesk.com> | 2019-07-08 23:17:38 +0200 |
commit | 2ccd3f5f5d089f5525f6b219df35a1200596f0a8 (patch) | |
tree | 76f11afe3648b22520a65a115058dd7fd4fe61fe /test/transform/resource/before/EqualsAndHashCodeAnnotated.java | |
parent | 11065b564f3fc1cee2c540a33b7ed1b3774816e2 (diff) | |
download | lombok-2ccd3f5f5d089f5525f6b219df35a1200596f0a8.tar.gz lombok-2ccd3f5f5d089f5525f6b219df35a1200596f0a8.tar.bz2 lombok-2ccd3f5f5d089f5525f6b219df35a1200596f0a8.zip |
Fixes #2165: Generated equals fails on annotated array type
Diffstat (limited to 'test/transform/resource/before/EqualsAndHashCodeAnnotated.java')
-rw-r--r-- | test/transform/resource/before/EqualsAndHashCodeAnnotated.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/transform/resource/before/EqualsAndHashCodeAnnotated.java b/test/transform/resource/before/EqualsAndHashCodeAnnotated.java new file mode 100644 index 00000000..d672b982 --- /dev/null +++ b/test/transform/resource/before/EqualsAndHashCodeAnnotated.java @@ -0,0 +1,19 @@ +//version 8 +import java.lang.annotation.*; + +@lombok.EqualsAndHashCode +class EqualsAndHashCodeAnnotated { + @Annotated int primitive; + @Annotated Object object; + + int @Annotated [] primitiveValues; + int @Annotated [] @Annotated [] morePrimitiveValues; + + Integer @Annotated [] objectValues; + Integer @Annotated [] @Annotated [] moreObjectValues; + + @Target(ElementType.TYPE_USE) + @Retention(RetentionPolicy.SOURCE) + @interface Annotated { + } +} |