mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-16 07:59:42 +08:00
Fix Groovy array declaration
See gh-1016
This commit is contained in:
parent
20b03fc6df
commit
4a2b3edcc8
@ -179,7 +179,7 @@ public class GroovySourceCodeWriter implements SourceCodeWriter<GroovySourceCode
|
||||
|
||||
private String formatValues(List<String> values, Function<String, String> formatter) {
|
||||
String result = values.stream().map(formatter).collect(Collectors.joining(", "));
|
||||
return (values.size() > 1) ? "{ " + result + " }" : result;
|
||||
return (values.size() > 1) ? "[ " + result + " ]" : result;
|
||||
}
|
||||
|
||||
private void writeFieldDeclaration(IndentingWriter writer, GroovyFieldDeclaration fieldDeclaration) {
|
||||
|
Loading…
Reference in New Issue
Block a user