mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 04:18:44 +00:00
Replace SetterWitherJavadocParamCopy with SetterAndWitherJavadoc
This commit is contained in:
1 parent
6dfbbe68b4
commit
514e89eafc
6 files changed
+94
-57
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
class SetterWitherJavadocParamCopy {
|
||||
private @lombok.Setter @lombok.experimental.Wither int fieldName;
|
||||
public SetterWitherJavadocParamCopy(int f) {
|
||||
super();
|
||||
this.fieldName = f;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") void setFieldName(final int fieldName) {
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") SetterWitherJavadocParamCopy withFieldName(final int fieldName) {
|
||||
return ((this.fieldName == fieldName) ? this : new SetterWitherJavadocParamCopy(fieldName));
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
class SetterWitherJavadocParamCopy {
|
||||
/**
|
||||
* Some text
|
||||
*
|
||||
* @param fieldName Hello, World1
|
||||
* --- GETTER ---
|
||||
* Getter section
|
||||
*
|
||||
* @return Sky is blue1
|
||||
*/
|
||||
@lombok.Setter @lombok.experimental.Wither private int fieldName;
|
||||
|
||||
public SetterWitherJavadocParamCopy(int f) {
|
||||
this.fieldName = f;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user