fix: [JAVA][SPRING] Nullaways warn with JSpecify => add missing annotation to parameter of method toIndentedString (#22685)

* fix: add annotation to method parameter

* fix: all impacted samples

---------

Co-authored-by: Philippe Kernevez <philippe@kernevez.net>
This commit is contained in:
William Cheng
2026-01-13 12:56:31 +08:00
committed by GitHub
parent e8faf7c46b
commit 848aecccda
1198 changed files with 1198 additions and 1197 deletions

View File

@@ -349,7 +349,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString({{>nullableAnnotation}}Object o) {
if (o == null) {
return "null";
}

View File

@@ -5117,6 +5117,7 @@ public class SpringCodegenTest {
.fileContains("@Nullable Set<String> stringSet")
.fileContains("private Set<String> stringDefaultSet = new LinkedHashSet<>(Arrays.asList(\"A\", \"B\"));")
.fileContains("private Set<String> stringEmptyDefaultSet = new LinkedHashSet<>();")
.fileContains("private String toIndentedString(@Nullable Object o)")
.fileDoesNotContain("private List<@Valid TagDto> tags = new ArrayList<>()")
.fileDoesNotContain("private Set<@Valid TagDto> tagsUnique = new LinkedHashSet<>()")
.fileDoesNotContain("private List<String> stringList = new ArrayList<>()")

View File

@@ -212,7 +212,7 @@ public class Pet {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -99,7 +99,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -125,7 +125,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -238,7 +238,7 @@ public class Order {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -275,7 +275,7 @@ public class Pet {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -99,7 +99,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -243,7 +243,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -100,7 +100,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -126,7 +126,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -237,7 +237,7 @@ public class Order {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -276,7 +276,7 @@ public class Pet {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -100,7 +100,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -244,7 +244,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -100,7 +100,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -126,7 +126,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -237,7 +237,7 @@ public class Order {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -269,7 +269,7 @@ public class Pet {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -100,7 +100,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -244,7 +244,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -100,7 +100,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -126,7 +126,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -237,7 +237,7 @@ public class Order {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -276,7 +276,7 @@ public class Pet {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -100,7 +100,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -244,7 +244,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -117,7 +117,7 @@ public class AdditionalPropertiesAnyTypeDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -118,7 +118,7 @@ public class AdditionalPropertiesArrayDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -117,7 +117,7 @@ public class AdditionalPropertiesBooleanDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -393,7 +393,7 @@ public class AdditionalPropertiesClassDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -117,7 +117,7 @@ public class AdditionalPropertiesIntegerDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -118,7 +118,7 @@ public class AdditionalPropertiesNumberDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -118,7 +118,7 @@ public class AdditionalPropertiesObjectDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -117,7 +117,7 @@ public class AdditionalPropertiesStringDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -113,7 +113,7 @@ public class AnimalDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -119,7 +119,7 @@ public class ApiResponseDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -86,7 +86,7 @@ public class ArrayOfArrayOfNumberOnlyDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -86,7 +86,7 @@ public class ArrayOfNumberOnlyDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -150,7 +150,7 @@ public class ArrayTestDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -139,7 +139,7 @@ public class BigCatDto extends CatDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -188,7 +188,7 @@ public class CapitalizationDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -101,7 +101,7 @@ public class CatDto extends AnimalDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -100,7 +100,7 @@ public class CategoryDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -104,7 +104,7 @@ public class ChildWithNullableDto extends ParentWithNullableDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -73,7 +73,7 @@ public class ClassModelDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -73,7 +73,7 @@ public class ClientDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -198,7 +198,7 @@ public class ContainerDefaultValueDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -94,7 +94,7 @@ public class DogDto extends AnimalDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -179,7 +179,7 @@ public class EnumArraysDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -315,7 +315,7 @@ public class EnumTestDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -73,7 +73,7 @@ public class FileDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -109,7 +109,7 @@ public class FileSchemaTestClassDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -394,7 +394,7 @@ public class FormatTestDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -96,7 +96,7 @@ public class HasOnlyReadOnlyDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -73,7 +73,7 @@ public class ListDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -216,7 +216,7 @@ public class MapTestDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -135,7 +135,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -96,7 +96,7 @@ public class Model200ResponseDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -146,7 +146,7 @@ public class NameDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -98,7 +98,7 @@ public class NullableMapPropertyDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -74,7 +74,7 @@ public class NumberOnlyDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -229,7 +229,7 @@ public class OrderDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -120,7 +120,7 @@ public class OuterCompositeDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -155,7 +155,7 @@ public class ParentWithNullableDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -264,7 +264,7 @@ public class PetDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -96,7 +96,7 @@ public class ReadOnlyFirstDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -142,7 +142,7 @@ public class ResponseObjectWithDifferentFieldNamesDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -73,7 +73,7 @@ public class ReturnDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -73,7 +73,7 @@ public class SpecialModelNameDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -96,7 +96,7 @@ public class TagDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -182,7 +182,7 @@ public class TypeHolderDefaultDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -205,7 +205,7 @@ public class TypeHolderExampleDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -234,7 +234,7 @@ public class UserDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -802,7 +802,7 @@ public class XmlItemDto {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -115,7 +115,7 @@ public class AdditionalPropertiesAnyType {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -116,7 +116,7 @@ public class AdditionalPropertiesArray {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -115,7 +115,7 @@ public class AdditionalPropertiesBoolean {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -391,7 +391,7 @@ public class AdditionalPropertiesClass {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -115,7 +115,7 @@ public class AdditionalPropertiesInteger {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -116,7 +116,7 @@ public class AdditionalPropertiesNumber {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -116,7 +116,7 @@ public class AdditionalPropertiesObject {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -115,7 +115,7 @@ public class AdditionalPropertiesString {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -119,7 +119,7 @@ public class Animal {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -84,7 +84,7 @@ public class ArrayOfArrayOfNumberOnly {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -84,7 +84,7 @@ public class ArrayOfNumberOnly {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -148,7 +148,7 @@ public class ArrayTest {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -144,7 +144,7 @@ public class BigCat extends Cat {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -186,7 +186,7 @@ public class Capitalization {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -107,7 +107,7 @@ public class Cat extends Animal {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -105,7 +105,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -102,7 +102,7 @@ public class ChildWithNullable extends ParentWithNullable {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -71,7 +71,7 @@ public class ClassModel {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -71,7 +71,7 @@ public class Client {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -204,7 +204,7 @@ public class ContainerDefaultValue {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -99,7 +99,7 @@ public class Dog extends Animal {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -177,7 +177,7 @@ public class EnumArrays {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -322,7 +322,7 @@ public class EnumTest {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -71,7 +71,7 @@ public class File {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

View File

@@ -107,7 +107,7 @@ public class FileSchemaTestClass {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
if (o == null) {
return "null";
}

Some files were not shown because too many files have changed in this diff Show More