Skip to content

Commit

Permalink
Replace SetterWitherJavadocParamCopy with SetterAndWitherJavadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun authored and rspilker committed Jan 14, 2019
1 parent 6dfbbe6 commit 514e89e
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 57 deletions.
46 changes: 46 additions & 0 deletions test/transform/resource/after-delombok/SetterAndWitherJavadoc.java
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);
}
}

This file was deleted.

22 changes: 22 additions & 0 deletions test/transform/resource/after-ecj/SetterAndWitherJavadoc.java
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));
}
}

This file was deleted.

26 changes: 26 additions & 0 deletions test/transform/resource/before/SetterAndWitherJavadoc.java
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 test/transform/resource/before/SetterWitherJavadocParamCopy.java

This file was deleted.

0 comments on commit 514e89e

Please sign in to comment.