mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[java] type migration: migrate constructor arguments (IDEA-280667)
GitOrigin-RevId: b5857edb9171eb2c780986798bf9577ebddb8d54
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4797aba4cc
commit
74dbddac9c
@@ -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) { }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Convert to atomic" "true"
|
||||
class Test {
|
||||
static final String <caret>field="br";
|
||||
{
|
||||
new Test(field);
|
||||
}
|
||||
|
||||
Test(String field) { }
|
||||
}
|
||||
Reference in New Issue
Block a user