Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
java
/
java-tests
/
testData
/
refactoring
/
extractMethod
/
NullableCheckVoid_after.java
blob: 311314d752d87b02d7ce2bef6117129235398453 [
file
] [
log
] [
blame
]
class
Test
{
void
foo
()
{
Object
o
=
newMethod
();
if
(
o
==
null
)
return
;
System
.
out
.
println
(
o
);
}
private
Object
newMethod
()
{
Object
o
=
""
;
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
if
(
i
==
10
){
o
=
null
;
}
}
if
(
o
==
null
)
{
return
null
;
}
return
o
;
}
}