mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 00:14:50 +00:00
[fixes #2682] Fix NPE, always add Javadoc return statement
This commit is contained in:
1 parent
626c33255b
commit
624c8a5a52
139 files changed
+912
-49
No files matched your search
@@ -6,6 +6,9 @@ import lombok.With;
|
||||
private final @With int x;
|
||||
private final int y;
|
||||
private int z;
|
||||
/**
|
||||
* @return {@code this}.
|
||||
*/
|
||||
public @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") CheckerFrameworkBasic withX(final int x) {
|
||||
return ((this.x == x) ? this : new CheckerFrameworkBasic(x, this.y, this.z));
|
||||
}
|
||||
@@ -18,6 +21,9 @@ import lombok.With;
|
||||
public @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") int getZ() {
|
||||
return this.z;
|
||||
}
|
||||
/**
|
||||
* @return {@code this}.
|
||||
*/
|
||||
public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") CheckerFrameworkBasic setZ(final int z) {
|
||||
this.z = z;
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user