aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValInTryWithResources.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/ValInTryWithResources.java')
-rw-r--r--test/transform/resource/after-delombok/ValInTryWithResources.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValInTryWithResources.java b/test/transform/resource/after-delombok/ValInTryWithResources.java
new file mode 100644
index 00000000..73f8d1a2
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValInTryWithResources.java
@@ -0,0 +1,10 @@
+//version 7
+import java.io.IOException;
+public class ValInTryWithResources {
+ public void whyTryInsteadOfCleanup() throws IOException {
+ try (final java.io.InputStream in = getClass().getResourceAsStream("ValInTryWithResources.class");) {
+ final java.io.InputStream i = in;
+ final int j = in.read();
+ }
+ }
+}