From e33a2090227585301b95a368050e83dc4c5883e5 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 18 Jun 2019 00:35:26 +0200 Subject: [issue #2140] Reproducing the bug: delombok issue: When you delombok a signature like: `List... arg`, the array brackets are replaced by dots in the delomboked output, which isn’t valid java. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/pretty/resource/after/ArrayAndVarargs.java | 7 +++++++ test/pretty/resource/before/ArrayAndVarargs.java | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/pretty/resource/after/ArrayAndVarargs.java create mode 100644 test/pretty/resource/before/ArrayAndVarargs.java (limited to 'test') diff --git a/test/pretty/resource/after/ArrayAndVarargs.java b/test/pretty/resource/after/ArrayAndVarargs.java new file mode 100644 index 00000000..9727bff6 --- /dev/null +++ b/test/pretty/resource/after/ArrayAndVarargs.java @@ -0,0 +1,7 @@ +import java.util.List; +class ArrayAndVarargs { + void test(List... foo) { + } + void test2(byte[]... foo) { + } +} diff --git a/test/pretty/resource/before/ArrayAndVarargs.java b/test/pretty/resource/before/ArrayAndVarargs.java new file mode 100644 index 00000000..38c9b276 --- /dev/null +++ b/test/pretty/resource/before/ArrayAndVarargs.java @@ -0,0 +1,9 @@ +import java.util.List; + +class ArrayAndVarargs { + void test(List... foo) { + } + + void test2(byte[]... foo) { + } +} \ No newline at end of file -- cgit