Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
duplicateBranchesInEnhancedSwitchFix
/
afterExpressionThreeDuplicates.java
blob: df785be93b4f6755c4518b5d542b89012fceaddd [
file
]
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
class
C
{
void
foo
(
int
n
)
{
String
s
=
switch
(
n
)
{
case
1
,
4
->
bar
(
"A"
);
case
2
->
bar
(
"B"
);
case
3
->
bar
(
"A"
);
default
->
""
;
}
}
String
bar
(
String
s
){
return
s
;}
}