From be20f7a1180e4aa3d699d89c756c0c07e2eba1a7 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Sun, 29 Nov 2009 01:07:53 +0100 Subject: Added tests for Setter, Cleanup and NonNull --- test/lombok/resource/before/CleanupPlain.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/lombok/resource/before/CleanupPlain.java (limited to 'test/lombok/resource/before/CleanupPlain.java') diff --git a/test/lombok/resource/before/CleanupPlain.java b/test/lombok/resource/before/CleanupPlain.java new file mode 100644 index 00000000..f463b152 --- /dev/null +++ b/test/lombok/resource/before/CleanupPlain.java @@ -0,0 +1,11 @@ +import lombok.Cleanup; +import java.io.*; +class Cleanup { + void test() throws Exception { + @lombok.Cleanup InputStream in = new FileInputStream("in"); + @Cleanup OutputStream out = new FileOutputStream("out"); + if (in.markSupported()) { + out.flush(); + } + } +} \ No newline at end of file -- cgit