Skip to content

NullableOnMethodReturnType seems incomplete #318

Open
@Bananeweizen

Description

@Bananeweizen

I've just reviewed the new NullableOnMethodReturnType recipe after receiving the latest release locally. To me it seems incomplete:

  • It handles Nullable, but not the opposite annotation ("NonNull", "NotNull" or other variants)
  • it seems to handle only the rewrite.internal.Nullable annotation, no other Nullable (like checker framework, Eclipse JDT, ...) due to relying on the class reference, not the simple class name literal.

Please be aware I only read the code and didn't run any test. So I might be completely wrong with this analysis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions