Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
plugins
/
groovy
/
testdata
/
highlighting
/
UnnecessaryReturnInSwitch.groovy
blob: 3a3fed7436b39907e335c572bf5cc654c5e5ee3c [
file
] [
log
] [
blame
]
def
foo
()
{
switch
(
a
)
{
case
1
:
print
1
<
warning descr
=
"return is unnecessary as the last statement in a method with no return value"
>
return
</
warning
>
case
2
:
print
2
return
}
}