damnhandy / Handy-URI-Templates

A Java URI Template processor implementing RFC6570
https://damnhandy.github.io/Handy-URI-Templates/
Other
203 stars 37 forks source link

Clean up rendering of nested arrays #50

Closed damnhandy closed 8 years ago

damnhandy commented 8 years ago

Tests such as this one here:

https://github.com/damnhandy/Handy-URI-Templates/blob/master/src/test/java/com/damnhandy/uri/template/TestDifferentDataTypes.java#L137

Will rely on the format of the toString() that is applied to either a List or Java array, which will result in the following output:

[One, Two],[Three, Four]

It would be better to not include the brackets as the output shouldn't be reliant on how Java serialized an array or collection. Thus, the output should be:

One, Two, Three, Four