diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-12-21 17:07:22 +0100 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2020-12-21 17:16:33 +0100 |
commit | 624c8a5a52d14ba1a6b690809f9ada15f71e15f5 (patch) | |
tree | 4ecef644d47fd32ef8cdbd66207f30f997362cc9 /test/transform/resource/after-ecj/WitherAccessLevel.java | |
parent | 626c33255bbac12ddab72dda7de2447132f29ae4 (diff) | |
download | lombok-624c8a5a52d14ba1a6b690809f9ada15f71e15f5.tar.gz lombok-624c8a5a52d14ba1a6b690809f9ada15f71e15f5.tar.bz2 lombok-624c8a5a52d14ba1a6b690809f9ada15f71e15f5.zip |
[fixes #2682] Fix NPE, always add Javadoc return statement
Diffstat (limited to 'test/transform/resource/after-ecj/WitherAccessLevel.java')
-rw-r--r-- | test/transform/resource/after-ecj/WitherAccessLevel.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/WitherAccessLevel.java b/test/transform/resource/after-ecj/WitherAccessLevel.java index 09a2e514..b6457534 100644 --- a/test/transform/resource/after-ecj/WitherAccessLevel.java +++ b/test/transform/resource/after-ecj/WitherAccessLevel.java @@ -9,18 +9,33 @@ class WitherAccessLevel { WitherAccessLevel(boolean isNone, boolean isPrivate, boolean isPackage, boolean isProtected, boolean isPublic, boolean value) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ private @java.lang.SuppressWarnings("all") WitherAccessLevel withPrivate(final boolean isPrivate) { return ((this.isPrivate == isPrivate) ? this : new WitherAccessLevel(this.isNone, isPrivate, this.isPackage, this.isProtected, this.isPublic, this.value)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ @java.lang.SuppressWarnings("all") WitherAccessLevel withPackage(final boolean isPackage) { return ((this.isPackage == isPackage) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, isPackage, this.isProtected, this.isPublic, this.value)); } + /** + * @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") WitherAccessLevel withProtected(final boolean isProtected) { return ((this.isProtected == isProtected) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, isProtected, this.isPublic, this.value)); } + /** + * @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") WitherAccessLevel withPublic(final boolean isPublic) { return ((this.isPublic == isPublic) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, isPublic, this.value)); } + /** + * @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") WitherAccessLevel withValue(final boolean value) { return ((this.value == value) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, this.isPublic, value)); } |