Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/BoxingInConstructorArguments.java
Tagir Valeev 0f431159c9 [java-dfa] Properly process boxing of generic parameter in constructor
Fixes IDEA-286477 Primitive type considered null in generic

GitOrigin-RevId: f9e8a5eae5505511d84258b8a1bd67deafe8b8a3
2022-01-13 12:45:34 +00:00

17 lines
333 B
Java

class Prop<T> {
private final T defaultValue;
private final Key key;
public Prop(Key key, T defaultValue) {
assert defaultValue != null;
this.key = key;
this.defaultValue = defaultValue;
}
public static void main(String[] args) {
Prop<Integer> prop = new Prop<>(Key.EXAMPLE, 1);
}
}
enum Key {EXAMPLE}