Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
duplicateBranchesInEnhancedSwitchFix
/
afterExpressionDuplicateBeforeDefaultDelete.java
blob: 5520fd47b87b4abff639cded9c5310fefcf07e7b [
file
]
// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class
C
{
void
foo
(
int
n
)
{
String
s
=
switch
(
n
)
{
case
2
->
bar
(
"B"
);
default
->
bar
(
"A"
);
}
}
String
bar
(
String
s
){
return
s
;}
}