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