Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
duplicateBranchesInSwitchFix
/
beforeDuplicateAfterDefaultMerge.java
blob: 5ffe82f39d79042eb73914b40779c81acb406025 [
file
]
// "Merge with the default 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class
C
{
void
foo
(
int
n
)
{
switch
(
n
)
{
case
2
:
bar
(
"B"
);
break
;
default
:
bar
(
"A"
);
break
;
case
1
:
bar
(
"A"
);<
caret
>
break
;
}
}
void
bar
(
String
s
){}
}