mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 10:14:58 +00:00
When generating javadoc for setters, a @return this is added if needed.
This commit is contained in:
1 parent
a7e3d5070e
commit
ed6d1fbb09
4 files changed
+126
-1
No files matched your search
@@ -108,4 +108,58 @@ class GetterSetterJavadoc3 {
|
||||
public void setFieldName(final int fieldName) {
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
}
|
||||
}
|
||||
class GetterSetterJavadoc4 {
|
||||
/**
|
||||
* Some text
|
||||
*/
|
||||
private int fieldName;
|
||||
/**
|
||||
* Some text
|
||||
*
|
||||
* @return Sky is blue4
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public int fieldName() {
|
||||
return this.fieldName;
|
||||
}
|
||||
/**
|
||||
* Some text
|
||||
*
|
||||
* @param fieldName Hello, World5
|
||||
* @return this
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public GetterSetterJavadoc4 fieldName(final int fieldName) {
|
||||
this.fieldName = fieldName;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
class GetterSetterJavadoc5 {
|
||||
/**
|
||||
* Some text
|
||||
*/
|
||||
private int fieldName;
|
||||
/**
|
||||
* Getter section
|
||||
* @return Sky is blue5
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public int fieldName() {
|
||||
return this.fieldName;
|
||||
}
|
||||
/**
|
||||
* Setter section
|
||||
* @param fieldName Hello, World5
|
||||
* @return Sky is blue5
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public GetterSetterJavadoc5 fieldName(final int fieldName) {
|
||||
this.fieldName = fieldName;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user