From 2fcfc4c3dc0b7058fda8aadd9253c3011e967e28 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 1 Nov 2011 00:53:21 +0100 Subject: Fixed unit tests to take into account work on issue 289 and 287. --- test/transform/resource/after-eclipse/NonNullPlain.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'test/transform/resource/after-eclipse/NonNullPlain.java') 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 -- cgit