diff options
author | Roel Spilker <r.spilker@gmail.com> | 2011-11-01 00:53:21 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2011-11-01 00:53:21 +0100 |
commit | 2fcfc4c3dc0b7058fda8aadd9253c3011e967e28 (patch) | |
tree | 2874f7bd6ab04ed022e70dd3eb4e2f35f919a99c /test/transform/resource/after-eclipse/NonNullPlain.java | |
parent | 58f0117d207d3c915f063b3f87a5c9bee5bb6dca (diff) | |
download | lombok-2fcfc4c3dc0b7058fda8aadd9253c3011e967e28.tar.gz lombok-2fcfc4c3dc0b7058fda8aadd9253c3011e967e28.tar.bz2 lombok-2fcfc4c3dc0b7058fda8aadd9253c3011e967e28.zip |
Fixed unit tests to take into account work on issue 289 and 287.
Diffstat (limited to 'test/transform/resource/after-eclipse/NonNullPlain.java')
-rw-r--r-- | test/transform/resource/after-eclipse/NonNullPlain.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/transform/resource/after-eclipse/NonNullPlain.java b/test/transform/resource/after-eclipse/NonNullPlain.java index 252a2077..c9c96d0a 100644 --- a/test/transform/resource/after-eclipse/NonNullPlain.java +++ b/test/transform/resource/after-eclipse/NonNullPlain.java @@ -5,15 +5,12 @@ import java.lang.annotation.*; @lombok.NonNull int i; @lombok.NonNull String s; @NotNull Object o; - public @java.beans.ConstructorProperties({"i", "s", "o"}) @java.lang.SuppressWarnings("all") NonNullPlain(final @lombok.NonNull int i, final @lombok.NonNull String s, final @NotNull Object o) { + public @java.beans.ConstructorProperties({"i", "s"}) @java.lang.SuppressWarnings("all") NonNullPlain(final @lombok.NonNull int i, final @lombok.NonNull String s) { super(); if ((s == null)) throw new java.lang.NullPointerException("s"); - if ((o == null)) - throw new java.lang.NullPointerException("o"); this.i = i; this.s = s; - this.o = o; } public @lombok.NonNull @java.lang.SuppressWarnings("all") int getI() { return this.i; @@ -21,7 +18,7 @@ import java.lang.annotation.*; public @lombok.NonNull @java.lang.SuppressWarnings("all") String getS() { return this.s; } - public @NotNull @java.lang.SuppressWarnings("all") Object getO() { + public @java.lang.SuppressWarnings("all") Object getO() { return this.o; } public @java.lang.SuppressWarnings("all") void setI(final @lombok.NonNull int i) { @@ -32,9 +29,7 @@ import java.lang.annotation.*; throw new java.lang.NullPointerException("s"); this.s = s; } - public @java.lang.SuppressWarnings("all") void setO(final @NotNull Object o) { - if ((o == null)) - throw new java.lang.NullPointerException("o"); + public @java.lang.SuppressWarnings("all") void setO(final Object o) { this.o = o; } }
\ No newline at end of file |