We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation should be like #407 and #363.
DUPLICATE_SWITCH_CASE
structure
switch (value) { case "a" -> { System.out.println("hello"); System.out.println("hello"); } case "b" -> { System.out.println("hello b"); } case "c" -> { System.out.println("hello"); System.out.println("hello"); } default -> {} }
Could be written as:
switch (value) { case "a", "c" -> { System.out.println("hello"); System.out.println("hello"); } case "b" -> { System.out.println("hello b"); } default -> {} }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What it does
Implementation should be like #407 and #363.
Lint Name
DUPLICATE_SWITCH_CASE
Category
structure
Example
Could be written as:
The text was updated successfully, but these errors were encountered: