Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
duplicateBranchesInEnhancedSwitch
/
CaseLabelsExpressionDefaultFirst.java
blob: 75164abd96f46df52996e5c4c5607037fbca1514 [
file
]
class
C
{
void
test
(
int
n
)
{
String
s
=
switch
(
n
)
{
default
:
case
1
:
yield
"a"
;
case
2
:
yield
"b"
;
case
3
:
<
weak_warning descr
=
"Branch in 'switch' is a duplicate of the default branch"
>
yield
"a"
;</
weak_warning
>
};
}
}