Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
duplicateBranchesInEnhancedSwitchFix
/
afterExpressionLeftoverComments.java
blob: 4a0418457910eaa24c3baaaeef35476d64191b65 [
file
]
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
class
C
{
String
foo
(
int
n
)
{
return
switch
(
n
)
{
case
1
,
2
->
{
foo
();
// same comment
break
"A"
;
}
// another comment
default
->
""
;
};
}
void
foo
(){}
}