Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
plugins
/
groovy
/
testdata
/
groovy
/
refactoring
/
extractMethod
/
argsUsedOnlyInAnonymousClass.test
blob: 64a3ac58ab876ff0a02278e590866741efb9fedf [
file
] [
log
] [
blame
]
def
foo
(
b
,
c
)
{
<begin>
[].
each
(
new
Closure
(
this
,
this
)
{
void
call
()
{
b
.
plus
(
c
)
}
})<
end
>
}
-----
def
foo
(
b
,
c
)
{
testMethod
(
b
,
c
)
}
private
ArrayList
testMethod
(
b
,
c
)
{
return
[].
each
(
new
Closure
(
this
,
this
)
{
void
call
()
{
b
.
plus
(
c
)
}
})
}