diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-08-26 21:41:10 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-08-27 00:15:47 +0200 |
commit | c11edbf032ce27e448faa00d37245665942095af (patch) | |
tree | 78a08bd85b134c6846389cae2abdd7de0950db77 /test/transform/resource/after-delombok/SetterAndWithMethodJavadoc.java | |
parent | 7bf70ed638fac701c60e2fb29217af7c38056a8c (diff) | |
download | lombok-c11edbf032ce27e448faa00d37245665942095af.tar.gz lombok-c11edbf032ce27e448faa00d37245665942095af.tar.bz2 lombok-c11edbf032ce27e448faa00d37245665942095af.zip |
[With] renaming lombok.experimental.Wither to lombok.experimental.With
Diffstat (limited to 'test/transform/resource/after-delombok/SetterAndWithMethodJavadoc.java')
-rw-r--r-- | test/transform/resource/after-delombok/SetterAndWithMethodJavadoc.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/SetterAndWithMethodJavadoc.java b/test/transform/resource/after-delombok/SetterAndWithMethodJavadoc.java new file mode 100644 index 00000000..97524b9d --- /dev/null +++ b/test/transform/resource/after-delombok/SetterAndWithMethodJavadoc.java @@ -0,0 +1,46 @@ +class SetterAndWithMethodJavadoc { + /** + * Some value. + */ + int i; + /** + * Some other value. + */ + int j; + SetterAndWithMethodJavadoc(int i, int j) { + this.i = i; + this.j = j; + } + /** + * Some value. + * @param the new value + */ + @java.lang.SuppressWarnings("all") + public void setI(final int i) { + this.i = i; + } + /** + * Some value. + * @param the new value + */ + @java.lang.SuppressWarnings("all") + public SetterAndWithMethodJavadoc withI(final int i) { + return this.i == i ? this : new SetterAndWithMethodJavadoc(i, this.j); + } + /** + * Set some other value. + * @param the new other value + */ + @java.lang.SuppressWarnings("all") + public void setJ(final int j) { + this.j = j; + } + /** + * Reinstantiate with some other value. + * @param the other new other value + */ + @java.lang.SuppressWarnings("all") + public SetterAndWithMethodJavadoc withJ(final int j) { + return this.j == j ? this : new SetterAndWithMethodJavadoc(this.i, j); + } +} |