mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 04:59:24 +00:00
fix: Video.toString() outputs an illegal json string (#3032)
refactor: json string concat add an extra line at EOF
This commit is contained in:
@@ -43,7 +43,7 @@ public record Video(Integer id, String title, Integer length, String description
|
||||
+ "\"length\": " + length + ","
|
||||
+ "\"description\": \"" + description + "\","
|
||||
+ "\"director\": \"" + director + "\","
|
||||
+ "\"language\": \"" + language + "\","
|
||||
+ "\"language\": \"" + language + "\""
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user