aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorEmil Lundberg <emil@yubico.com>2019-01-08 13:59:20 +0100
committerRoel Spilker <r.spilker@gmail.com>2019-01-15 00:00:19 +0100
commit514e89eafc991c146f95029411827e97389b765e (patch)
tree3962aa6ca28bb8a8341b8161a906e926211e1cbf /test/transform/resource/after-delombok
parent6dfbbe68b47356e24eb95e795fa764caca5e605e (diff)
downloadlombok-514e89eafc991c146f95029411827e97389b765e.tar.gz
lombok-514e89eafc991c146f95029411827e97389b765e.tar.bz2
lombok-514e89eafc991c146f95029411827e97389b765e.zip
Replace SetterWitherJavadocParamCopy with SetterAndWitherJavadoc
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/SetterAndWitherJavadoc.java46
-rw-r--r--test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java28
2 files changed, 46 insertions, 28 deletions
diff --git a/test/transform/resource/after-delombok/SetterAndWitherJavadoc.java b/test/transform/resource/after-delombok/SetterAndWitherJavadoc.java
new file mode 100644
index 00000000..8c0505e7
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterAndWitherJavadoc.java
@@ -0,0 +1,46 @@
+class SetterAndWitherJavadoc {
+ /**
+ * Some value.
+ */
+ int i;
+ /**
+ * Some other value.
+ */
+ int j;
+ SetterAndWitherJavadoc(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 SetterAndWitherJavadoc withI(final int i) {
+ return this.i == i ? this : new SetterAndWitherJavadoc(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 SetterAndWitherJavadoc withJ(final int j) {
+ return this.j == j ? this : new SetterAndWitherJavadoc(this.i, j);
+ }
+}
diff --git a/test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java b/test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java
deleted file mode 100644
index e6f5ab75..00000000
--- a/test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java
+++ /dev/null
@@ -1,28 +0,0 @@
-class SetterWitherJavadocParamCopy {
- /**
- * Some text
- */
- private int fieldName;
-
- public SetterWitherJavadocParamCopy(int f) {
- this.fieldName = f;
- }
- /**
- * Some text
- *
- * @param fieldName Hello, World1
- */
- @java.lang.SuppressWarnings("all")
- public void setFieldName(final int fieldName) {
- this.fieldName = fieldName;
- }
- /**
- * Some text
- *
- * @param fieldName Hello, World1
- */
- @java.lang.SuppressWarnings("all")
- public SetterWitherJavadocParamCopy withFieldName(final int fieldName) {
- return this.fieldName == fieldName ? this : new SetterWitherJavadocParamCopy(fieldName);
- }
-} \ No newline at end of file