aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/CleanupPlain.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/CleanupPlain.java')
-rw-r--r--test/transform/resource/before/CleanupPlain.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/transform/resource/before/CleanupPlain.java b/test/transform/resource/before/CleanupPlain.java
new file mode 100644
index 00000000..a91ac3c1
--- /dev/null
+++ b/test/transform/resource/before/CleanupPlain.java
@@ -0,0 +1,11 @@
+import lombok.Cleanup;
+import java.io.*;
+class CleanupPlain {
+ 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