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