Skip to content

Detect dead instanceof-expressions #44

@markiewb

Description

@markiewb

See https://netbeans.org/bugzilla/show_bug.cgi?id=132511

public class NewClass {

    public void SomeMethod(ArrayList foo) {
        if (foo instanceof Map) {
            System.out.println("No compile-time error");
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions