Skip to content

[BUG][JAVA] @Nullable not imported in template causing compilation error #22886

@eppdot

Description

@eppdot
Description

This method was generated, but the @Nullable import is missing

  /**
   * Convert the given object to string with each line indented by 4 spaces (except the first line).
   */
  private String toIndentedString(@Nullable Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
openapi-generator version

7.19.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions