diff options
author | Roel Spilker <r.spilker@gmail.com> | 2009-11-29 01:07:53 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2009-11-29 01:07:53 +0100 |
commit | be20f7a1180e4aa3d699d89c756c0c07e2eba1a7 (patch) | |
tree | 8ff277160a99fc7f2f6a11fdea60980979019195 /test/lombok/resource/before/CleanupPlain.java | |
parent | 0b36718d20bf149b4bdd9b2be88bf68055311b9a (diff) | |
download | lombok-be20f7a1180e4aa3d699d89c756c0c07e2eba1a7.tar.gz lombok-be20f7a1180e4aa3d699d89c756c0c07e2eba1a7.tar.bz2 lombok-be20f7a1180e4aa3d699d89c756c0c07e2eba1a7.zip |
Added tests for Setter, Cleanup and NonNull
Diffstat (limited to 'test/lombok/resource/before/CleanupPlain.java')
-rw-r--r-- | test/lombok/resource/before/CleanupPlain.java | 11 |
1 files changed, 11 insertions, 0 deletions
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 |