From a94243e06202a274a9499d1c0e79aeccb1aef5cd Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 9 Nov 2010 00:37:06 +0100 Subject: Added lombok.Lombok.preventNullAnalysis to the null test in @Cleanup to suppress warnings about variables that cannot be null --- test/transform/resource/after-ecj/CleanupPlain.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/transform/resource/after-ecj/CleanupPlain.java') diff --git a/test/transform/resource/after-ecj/CleanupPlain.java b/test/transform/resource/after-ecj/CleanupPlain.java index fe8d7571..6eaa4377 100644 --- a/test/transform/resource/after-ecj/CleanupPlain.java +++ b/test/transform/resource/after-ecj/CleanupPlain.java @@ -18,7 +18,7 @@ class CleanupPlain { } finally { - if ((out != null)) + if ((lombok.Lombok.preventNullAnalysis(out) != null)) { out.close(); } @@ -26,7 +26,7 @@ class CleanupPlain { } finally { - if ((in != null)) + if ((lombok.Lombok.preventNullAnalysis(in) != null)) { in.close(); } -- cgit