Skip to content

Better reason about maps with @Nullable values in JSpecify mode #1805

Description

@msridhar

Right now, whenever we see a map.containsKey call return true for some key k, we assume that map.get(k) returns something non-null. But this is not true when the map contains @Nullable values. In JSpecify mode, we should reason more correctly about this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    false negativejspecifyRelated to support for jspecify standard (see jspecify.dev)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions