Skip to content

Wrong nullability annotations produce static code analysis errors #1825

@reitzmichnicht

Description

@reitzmichnicht

Using latest spring-kafka produces some static analysis errors due to wrong annotations. For example in
https://github.com/spring-projects/spring-kafka/blob/main/spring-kafka/src/main/java/org/springframework/kafka/config/KafkaListenerEndpointRegistry.java
the method getListenerContainer can return null as documented, but on package level the annotation @org.springframework.lang.NonNullApi lets analyzers expect that the method cannot return null values.
It would be great if the nullability annotations are used correctly or removed instead.

Kind regards,
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions