mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 06:15:41 +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
@@ -4,6 +4,9 @@
|
||||
WithOnClass1(boolean isNone, boolean isPublic) {
|
||||
super();
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
public @java.lang.SuppressWarnings("all") WithOnClass1 withPublic(final boolean isPublic) {
|
||||
return ((this.isPublic == isPublic) ? this : new WithOnClass1(this.isNone, isPublic));
|
||||
}
|
||||
@@ -15,9 +18,15 @@
|
||||
WithOnClass2(boolean isNone, boolean isProtected, boolean isPackage) {
|
||||
super();
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
@java.lang.SuppressWarnings("all") WithOnClass2 withPackage(final boolean isPackage) {
|
||||
return ((this.isPackage == isPackage) ? this : new WithOnClass2(this.isNone, this.isProtected, isPackage));
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
protected @java.lang.SuppressWarnings("all") WithOnClass2 withProtected(final boolean isProtected) {
|
||||
return ((this.isProtected == isProtected) ? this : new WithOnClass2(this.isNone, isProtected, this.isPackage));
|
||||
}
|
||||
@@ -28,9 +37,15 @@
|
||||
WithOnClass3(String couldBeNull, String nonNull) {
|
||||
super();
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
public @java.lang.SuppressWarnings("all") WithOnClass3 withCouldBeNull(final String couldBeNull) {
|
||||
return ((this.couldBeNull == couldBeNull) ? this : new WithOnClass3(couldBeNull, this.nonNull));
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
public @java.lang.SuppressWarnings("all") WithOnClass3 withNonNull(final @lombok.NonNull String nonNull) {
|
||||
if ((nonNull == null))
|
||||
{
|
||||
@@ -46,6 +61,9 @@
|
||||
super();
|
||||
this.fY = y;
|
||||
}
|
||||
/**
|
||||
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
|
||||
*/
|
||||
public @java.lang.SuppressWarnings("all") WithOnClass4 withY(final int fY) {
|
||||
return ((this.fY == fY) ? this : new WithOnClass4(fY));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user