-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace SetterWitherJavadocParamCopy with SetterAndWitherJavadoc
- Loading branch information
Showing
6 changed files
with
94 additions
and
57 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
test/transform/resource/after-delombok/SetterAndWitherJavadoc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
test/transform/resource/after-delombok/SetterWitherJavadocParamCopy.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
test/transform/resource/after-ecj/SetterAndWitherJavadoc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import lombok.experimental.Wither; | ||
class SetterAndWitherJavadoc { | ||
@lombok.Setter @lombok.experimental.Wither int i; | ||
@lombok.Setter @lombok.experimental.Wither int j; | ||
SetterAndWitherJavadoc(int i, int j) { | ||
super(); | ||
this.i = i; | ||
this.j = j; | ||
} | ||
public @java.lang.SuppressWarnings("all") void setI(final int i) { | ||
this.i = i; | ||
} | ||
public @java.lang.SuppressWarnings("all") SetterAndWitherJavadoc withI(final int i) { | ||
return ((this.i == i) ? this : new SetterAndWitherJavadoc(i, this.j)); | ||
} | ||
public @java.lang.SuppressWarnings("all") void setJ(final int j) { | ||
this.j = j; | ||
} | ||
public @java.lang.SuppressWarnings("all") SetterAndWitherJavadoc withJ(final int j) { | ||
return ((this.j == j) ? this : new SetterAndWitherJavadoc(this.i, j)); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
test/transform/resource/after-ecj/SetterWitherJavadocParamCopy.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
test/transform/resource/before/SetterAndWitherJavadoc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import lombok.experimental.Wither; | ||
class SetterAndWitherJavadoc { | ||
/** | ||
* Some value. | ||
* @param the new value | ||
*/ | ||
@lombok.Setter @lombok.experimental.Wither int i; | ||
|
||
/** | ||
* Some other value. | ||
* | ||
* --- SETTER --- | ||
* Set some other value. | ||
* @param the new other value | ||
* | ||
* --- WITHER --- | ||
* Reinstantiate with some other value. | ||
* @param the other new other value | ||
*/ | ||
@lombok.Setter @lombok.experimental.Wither int j; | ||
|
||
SetterAndWitherJavadoc(int i, int j) { | ||
this.i = i; | ||
this.j = j; | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
test/transform/resource/before/SetterWitherJavadocParamCopy.java
This file was deleted.
Oops, something went wrong.