aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/WithOnClass.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2020-12-27 05:36:51 +0100
committerGitHub <noreply@github.com>2020-12-27 05:36:51 +0100
commit11b6f8f97a6fde9a5f6e39f38e63cdff73742822 (patch)
tree733b5a65b754f325fa9273d11fb840a7e0002398 /test/transform/resource/after-delombok/WithOnClass.java
parent0532285eb8de98e9e4e3fc4131476b5f4ef2740d (diff)
parent624c8a5a52d14ba1a6b690809f9ada15f71e15f5 (diff)
downloadlombok-11b6f8f97a6fde9a5f6e39f38e63cdff73742822.tar.gz
lombok-11b6f8f97a6fde9a5f6e39f38e63cdff73742822.tar.bz2
lombok-11b6f8f97a6fde9a5f6e39f38e63cdff73742822.zip
Merge pull request #2684 from Rawi01/npe-javadoc
Fix NullPointerException during Javadoc copy
Diffstat (limited to 'test/transform/resource/after-delombok/WithOnClass.java')
-rw-r--r--test/transform/resource/after-delombok/WithOnClass.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/WithOnClass.java b/test/transform/resource/after-delombok/WithOnClass.java
index d6fb6fdf..34c6d811 100644
--- a/test/transform/resource/after-delombok/WithOnClass.java
+++ b/test/transform/resource/after-delombok/WithOnClass.java
@@ -3,6 +3,9 @@ class WithOnClass1 {
boolean isPublic;
WithOnClass1(boolean isNone, boolean isPublic) {
}
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
@java.lang.SuppressWarnings("all")
public WithOnClass1 withPublic(final boolean isPublic) {
return this.isPublic == isPublic ? this : new WithOnClass1(this.isNone, isPublic);
@@ -14,10 +17,16 @@ class WithOnClass2 {
boolean isPackage;
WithOnClass2(boolean isNone, boolean isProtected, boolean isPackage) {
}
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
@java.lang.SuppressWarnings("all")
protected WithOnClass2 withProtected(final boolean isProtected) {
return this.isProtected == isProtected ? this : new WithOnClass2(this.isNone, isProtected, this.isPackage);
}
+ /**
+ * @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);
@@ -29,10 +38,16 @@ class WithOnClass3 {
String nonNull;
WithOnClass3(String couldBeNull, String nonNull) {
}
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
@java.lang.SuppressWarnings("all")
public 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).
+ */
@java.lang.SuppressWarnings("all")
public WithOnClass3 withNonNull(@lombok.NonNull final String nonNull) {
if (nonNull == null) {
@@ -47,6 +62,9 @@ class WithOnClass4 {
WithOnClass4(int y) {
this.fY = y;
}
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
@java.lang.SuppressWarnings("all")
public WithOnClass4 withY(final int fY) {
return this.fY == fY ? this : new WithOnClass4(fY);