Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
openamiguel/error-prone
#1
openamiguel/error-prone#1
@jsannemo

Description

@jsannemo
Issue body actions

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

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.