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