aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/after/TryWithResourcesVarRef.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/pretty/resource/after/TryWithResourcesVarRef.java')
-rw-r--r--test/pretty/resource/after/TryWithResourcesVarRef.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pretty/resource/after/TryWithResourcesVarRef.java b/test/pretty/resource/after/TryWithResourcesVarRef.java
new file mode 100644
index 00000000..5117f706
--- /dev/null
+++ b/test/pretty/resource/after/TryWithResourcesVarRef.java
@@ -0,0 +1,9 @@
+import java.io.PrintWriter;
+public class TryWithResourcesVarRef {
+ {
+ PrintWriter pw = new PrintWriter(System.out);
+ try (pw) {
+ pw.println();
+ }
+ }
+}