mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
type migration: add a test for IDEA-173791
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Convert to ThreadLocal" "true"
|
||||
import java.util.Arrays;
|
||||
|
||||
class Foo {
|
||||
private final ThreadLocal<char[]> lookahead = ThreadLocal.withInitial(() -> new char[0]);
|
||||
|
||||
{ lookahead.set(Arrays.copyOf(lookahead.get(), 42));}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Convert to ThreadLocal" "true"
|
||||
import java.util.Arrays;
|
||||
|
||||
class Foo {
|
||||
private char[] loo<caret>kahead = new char[0];
|
||||
|
||||
{ lookahead = Arrays.copyOf(lookahead, 42);}
|
||||
}
|
||||
Reference in New Issue
Block a user