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