aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/after/TryWithResourcesVarRef.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-10-03 23:56:41 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-10-03 23:56:41 +0200
commit58545cec67ada261d13c454fce460ed55798cd72 (patch)
tree8c140dd3d788da876998c10b2d1f2bf9f3e1c91b /test/pretty/resource/after/TryWithResourcesVarRef.java
parent14cce76805324dce66fcdfde333a63c677694d64 (diff)
parent4f763367f1092546350324f3040fa84cb0380409 (diff)
downloadlombok-58545cec67ada261d13c454fce460ed55798cd72.tar.gz
lombok-58545cec67ada261d13c454fce460ed55798cd72.tar.bz2
lombok-58545cec67ada261d13c454fce460ed55798cd72.zip
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java
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();
+ }
+ }
+}