[java] type migration: migrate constructor arguments (IDEA-280667)

GitOrigin-RevId: b5857edb9171eb2c780986798bf9577ebddb8d54
This commit is contained in:
Anna Kozlova
2021-10-19 13:22:09 +02:00
committed by intellij-monorepo-bot
parent 4797aba4cc
commit 74dbddac9c
3 changed files with 30 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
import java.util.concurrent.atomic.AtomicReference;
// "Convert to atomic" "true"
class Test {
static final AtomicReference<String> field = new AtomicReference<>("br");
{
new Test(field.get());
}
Test(String field) { }
}

View File

@@ -0,0 +1,9 @@
// "Convert to atomic" "true"
class Test {
static final String <caret>field="br";
{
new Test(field);
}
Test(String field) { }
}