aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-06-18 00:35:26 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-06-18 00:35:26 +0200
commite33a2090227585301b95a368050e83dc4c5883e5 (patch)
tree317be3f660e0b1a5ed046f9aa1a904a8c288018a /test
parentd9b8b14575280cd6411a6a157b6c4e8117edb1ba (diff)
downloadlombok-e33a2090227585301b95a368050e83dc4c5883e5.tar.gz
lombok-e33a2090227585301b95a368050e83dc4c5883e5.tar.bz2
lombok-e33a2090227585301b95a368050e83dc4c5883e5.zip
[issue #2140] Reproducing the bug: delombok issue: When you delombok a signature like: `List<byte[]>... arg`, the array brackets are replaced by dots in the delomboked output, which isn’t valid java.
Diffstat (limited to 'test')
-rw-r--r--test/pretty/resource/after/ArrayAndVarargs.java7
-rw-r--r--test/pretty/resource/before/ArrayAndVarargs.java9
2 files changed, 16 insertions, 0 deletions
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<String[]>... 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<String[]>... foo) {
+ }
+
+ void test2(byte[]... foo) {
+ }
+} \ No newline at end of file