mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 21:52:48 +07:00
Variables could change after array initialization even if the array itself is constant IDEA-222152 Incorrect processing of array initializer when it uses a reassigned variable GitOrigin-RevId: 5d21b222302b04ab7d24467d9b834b5763a73588
10 lines
265 B
Java
10 lines
265 B
Java
import org.jetbrains.annotations.*;
|
|
|
|
public class ArrayInitializerElementRewritten {
|
|
public static void main(String[] args) throws InterruptedException {
|
|
Object p = null;
|
|
Object[] ps = new Object[]{p};
|
|
p = new Object();
|
|
if (ps[0] == null) {}
|
|
}
|
|
} |