Gitiles
Code Review
Sign In
android-review.linaro.org
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
java
/
typeMigration
/
testData
/
intentions
/
atomic
/
after9.java
blob: c462a10961d47581eda805a5c678b925c340f184 [
file
] [
log
] [
blame
]
import
java
.
util
.
concurrent
.
atomic
.
AtomicInteger
;
// "Convert to atomic" "true"
class
Test
{
final
AtomicInteger
o
;
int
j
=
o
.
get
();
Test
(
int
o
)
{
this
.
o
=
new
AtomicInteger
(
o
);
}
void
foo
()
{
while
((
o
=
j
)
!=
0
)
{}
}
}