File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
modules/openapi-generator/src
main/resources/JavaSpring
test/java/org/openapitools/codegen/java/spring Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}
349349 * Convert the given object to string with each line indented by 4 spaces
350350 * (except the first line).
351351 */
352- private String toIndentedString(Object o) {
352+ private String toIndentedString({ { > nullableAnnotation } } Object o) {
353353 if (o == null) {
354354 return " null" ;
355355 }
Original file line number Diff line number Diff line change @@ -5117,6 +5117,7 @@ public void testCollectionTypesWithDefaults_issue_18102() throws IOException {
51175117 .fileContains ("@Nullable Set<String> stringSet" )
51185118 .fileContains ("private Set<String> stringDefaultSet = new LinkedHashSet<>(Arrays.asList(\" A\" , \" B\" ));" )
51195119 .fileContains ("private Set<String> stringEmptyDefaultSet = new LinkedHashSet<>();" )
5120+ .fileContains ("private String toIndentedString(@Nullable Object o)" )
51205121 .fileDoesNotContain ("private List<@Valid TagDto> tags = new ArrayList<>()" )
51215122 .fileDoesNotContain ("private Set<@Valid TagDto> tagsUnique = new LinkedHashSet<>()" )
51225123 .fileDoesNotContain ("private List<String> stringList = new ArrayList<>()" )
You can’t perform that action at this time.
0 commit comments