aboutsummaryrefslogtreecommitdiff
path: root/test/lombok/resource/after/CleanupPlain.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/lombok/resource/after/CleanupPlain.java')
-rw-r--r--test/lombok/resource/after/CleanupPlain.java18
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();
+ }
+ }
+}