aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/CleanupPlain.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/CleanupPlain.java')
-rw-r--r--test/transform/resource/after-ecj/CleanupPlain.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/CleanupPlain.java b/test/transform/resource/after-ecj/CleanupPlain.java
new file mode 100644
index 00000000..6754b4f6
--- /dev/null
+++ b/test/transform/resource/after-ecj/CleanupPlain.java
@@ -0,0 +1,29 @@
+import lombok.Cleanup;
+import java.io.*;
+class CleanupPlain {
+ CleanupPlain() {
+ super();
+ }
+ void test() throws Exception {
+ @lombok.Cleanup InputStream in = new FileInputStream("in");
+ try
+ {
+ @Cleanup OutputStream out = new FileOutputStream("out");
+ try
+ {
+ if (in.markSupported())
+ {
+ out.flush();
+ }
+ }
+ finally
+ {
+ out.close();
+ }
+ }
+ finally
+ {
+ in.close();
+ }
+ }
+} \ No newline at end of file