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/after/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/after/CleanupPlain.java')
-rw-r--r-- | test/lombok/resource/after/CleanupPlain.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lombok/resource/after/CleanupPlain.java b/test/lombok/resource/after/CleanupPlain.java new file mode 100644 index 00000000..25c66ced --- /dev/null +++ b/test/lombok/resource/after/CleanupPlain.java @@ -0,0 +1,18 @@ +import java.io.*; +class Cleanup { + void test() throws Exception { + InputStream in = new FileInputStream("in"); + try { + OutputStream out = new FileOutputStream("out"); + try { + if (in.markSupported()) { + out.flush(); + } + } finally { + out.close(); + } + } finally { + in.close(); + } + } +} |