diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-03-18 23:57:09 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-03-18 23:57:09 +0100 |
commit | 66f32d5073bc726f76f958471ea93ec5a29c354b (patch) | |
tree | cdad5343e429b8a243db02b9e826205099b1d34f /test/pretty/resource/before/TryWithResources.java | |
parent | 0ecc23766f18418f28d09291455777d59537ccc3 (diff) | |
download | lombok-66f32d5073bc726f76f958471ea93ec5a29c354b.tar.gz lombok-66f32d5073bc726f76f958471ea93ec5a29c354b.tar.bz2 lombok-66f32d5073bc726f76f958471ea93ec5a29c354b.zip |
Fixed issue 459: Delombok would choke on try-with-resources.
Diffstat (limited to 'test/pretty/resource/before/TryWithResources.java')
-rw-r--r-- | test/pretty/resource/before/TryWithResources.java | 9 |
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(); + } + } +} |