Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
plugins
/
groovy
/
testdata
/
groovy
/
refactoring
/
extractMethod
/
twoVars.test
blob: 8d8c9ac58339f3b27187b509da27601d58270aea [
file
] [
log
] [
blame
]
def
foo
()
{
<begin>
int
i
=
0
int
j
=
1
while
(
condition
)
{
i
=
i
+
1
j
=
i
}<
end
>
return
j
}
-----
def
foo
()
{
int
j
=
testMethod
()
return
j
}
private
int
testMethod
()
{
int
i
=
0
int
j
=
1
while
(
condition
)
{
i
=
i
+
1
j
=
i
}
return
j
}