Visitar URL original
The `WrongOneOf` check also fails with the new arrow-type switch expressions · Issue #2393 · google/error-prone · GitHub
Skip to content

The WrongOneOf check also fails with the new arrow-type switch expressions #2393

Closed
openamiguel/error-prone
#1

Description

@jsannemo

ATTENTION! Please read and follow:

Description of the problem / feature request:

The WrongOneOf check also fails with the new arrow-type switch expressions.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

switch (proto.oneOfCase()) {
  case BLAH -> {...};
  default -> {...};
}

What version of Error Prone are you using?

2.6.0

Have you found anything relevant by searching the web?

Same fix required as #2371 and #2124 here

Activity

  1. added a commit that references this issue on Aug 12, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions