Skip to content

Type parameters used only in the return type #1967

@ppkarwasz

Description

@ppkarwasz

As described in TypeParameterUnusedInFormals, these methods provide developers a false sense of type safety, whereas in reality they can cause ClassCastExceptions at runtime:

Changing/removing these methods is a binary compatible, but source incompatible change, hence this must be done in a major release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAffects the public API

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    To triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions