Gitiles
Code Review
Sign In
android-review.linaro.org
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
plugins
/
InspectionGadgets
/
test
/
com
/
siyeh
/
igfixes
/
threading
/
make_field_volatile
/
Simple.java
blob: b514dc20378abf6c91a8da5a4c1bb45e45090521 [
file
] [
log
] [
blame
]
public
class
Simple
{
private
static
Object
s_instance
;
public
static
Object
foo
()
{
if
<
caret
>(
s_instance
==
null
)
{
synchronized
(
Simple
.
class
)
{
if
(
s_instance
==
null
)
{
s_instance
=
new
Object
();
}
}
}
return
s_instance
;
}
}