Skip to content

Commit

Permalink
fix: init value for string arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Jul 21, 2021
1 parent f302a0e commit b564280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/base/src/main/java/io/sundr/model/Property.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public Property withErasure() {
protected String getDefaultValue() {
Object value = getAttribute(INIT);
if (getTypeRef() instanceof ClassRef && ((ClassRef) getTypeRef()).getFullyQualifiedName().equals(JAVA_LANG_STRING)
&& !String.valueOf(value).startsWith("\"")) {
&& getTypeRef().getDimensions() == 0 && !String.valueOf(value).startsWith("\"")) {
return "\"" + value + "\"";
} else {
return String.valueOf(value);
Expand Down

0 comments on commit b564280

Please sign in to comment.