Skip to content

[BUG][Java][Spring] 7.14.0 hardcodes nullable import from Spring #21498

@joca-bt

Description

@joca-bt

The import org.springframework.lang.Nullable is hardcoded into the templates:

  • api.mustache
  • apiController.mustache
  • apiDelegate.mustache
  • libraries/spring-http-interface/api.mustache

Importing this way ignores import mappings.

For example, in our generation we use

importMappings:
  Nullable: jakarta.annotation.Nullable

which replaces all imports properly except the new hardcoded ones.

This was introduced by #21202.

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