Skip to content

Implement instanceof.redundant check #1237

@aosen-xiong

Description

@aosen-xiong

For cast there are two subcategories. Does the same make sense for this option?

Originally posted by @wmdietl in #1209 (comment)

Like cast.redundant, we need to implement instanceof.redundant check. Proper code refactoring is required in BaseTypeVisitor#visitInstanceOf method. Please refer to BaseTypeVisitor#visitTypeCast.

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