From 4f763367f1092546350324f3040fa84cb0380409 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Fri, 2 Oct 2020 17:30:07 +0200 Subject: Rename TryWithResourcesVarRef --- test/pretty/resource/after/TryWithResourcesVarRef.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/pretty/resource/after/TryWithResourcesVarRef.java (limited to 'test/pretty/resource/after/TryWithResourcesVarRef.java') 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(); + } + } +} -- cgit