diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-02-07 23:20:19 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-02-07 23:21:15 +0100 |
commit | b15bcb09e9e05b584e73c999dd9c29b6cfb94a44 (patch) | |
tree | 50b14d9296222133830ebc761154ff6e2633c8ef /test/transform/resource/after-delombok/DataOnEnum.java | |
parent | 492c6f3da86fd5deb4c842bdaadc6396dc831237 (diff) | |
download | lombok-b15bcb09e9e05b584e73c999dd9c29b6cfb94a44.tar.gz lombok-b15bcb09e9e05b584e73c999dd9c29b6cfb94a44.tar.bz2 lombok-b15bcb09e9e05b584e73c999dd9c29b6cfb94a44.zip |
Added test to confirm behaviour of @RequiredArgsConstructor, @ToString, and @Getter on enums.
Diffstat (limited to 'test/transform/resource/after-delombok/DataOnEnum.java')
-rw-r--r-- | test/transform/resource/after-delombok/DataOnEnum.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/DataOnEnum.java b/test/transform/resource/after-delombok/DataOnEnum.java new file mode 100644 index 00000000..5cfe8823 --- /dev/null +++ b/test/transform/resource/after-delombok/DataOnEnum.java @@ -0,0 +1,17 @@ +public enum DataOnEnum { + A("hello"); + private final String someField; + @java.lang.SuppressWarnings("all") + public String getSomeField() { + return this.someField; + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "DataOnEnum(someField=" + this.getSomeField() + ")"; + } + @java.lang.SuppressWarnings("all") + private DataOnEnum(final String someField) { + this.someField = someField; + } +}
\ No newline at end of file |