diff options
author | ysherwin <ysherwin@amazon.com> | 2021-10-17 21:17:13 +0300 |
---|---|---|
committer | ysherwin <ysherwin@amazon.com> | 2021-10-17 21:17:13 +0300 |
commit | d2e8370c24ece8f92d7ca417c25c0f7d60ea039a (patch) | |
tree | 2b54e8f8d987d5adbe5b326c2ecf43c0439c12ed /test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java | |
parent | 4d568ab3ad44eb9e4216a16b111c54d3f101c3bc (diff) | |
download | lombok-d2e8370c24ece8f92d7ca417c25c0f7d60ea039a.tar.gz lombok-d2e8370c24ece8f92d7ca417c25c0f7d60ea039a.tar.bz2 lombok-d2e8370c24ece8f92d7ca417c25c0f7d60ea039a.zip |
Adding a new accessors flag - javaBeansSpecCapitalization
Diffstat (limited to 'test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java')
-rw-r--r-- | test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java b/test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java new file mode 100644 index 00000000..06164fe9 --- /dev/null +++ b/test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java @@ -0,0 +1,25 @@ +@lombok.With @lombok.experimental.Accessors(javaBeansSpecCapitalization = true) class WithOnJavaBeansSpecCapitalization { + int aField; + WithOnJavaBeansSpecCapitalization(int aField) { + super(); + } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ + public @java.lang.SuppressWarnings("all") WithOnJavaBeansSpecCapitalization withaField(final int aField) { + return ((this.aField == aField) ? this : new WithOnJavaBeansSpecCapitalization(aField)); + } +} + +@lombok.With class WithOffJavaBeansSpecCapitalization { + int aField; + WithOffJavaBeansSpecCapitalization(int aField) { + super(); + } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ + public @java.lang.SuppressWarnings("all") WithOffJavaBeansSpecCapitalization withAField(final int aField) { + return ((this.aField == aField) ? this : new WithOffJavaBeansSpecCapitalization(aField)); + } +} |