Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithConstantValue/afterGeneric.java
Tagir Valeev 5f0fd1d8e1 [java-inspections] ReplaceWithConstantValueFix: substitute parameter types when necessary
Fixes IDEA-276811 Replace-with-null refactoring is incorrect when generics are involved

GitOrigin-RevId: 5783d19c4c5458ecb3c1e97ed11ff1d78a756793
2022-04-07 07:55:36 +00:00

9 lines
187 B
Java

// "Replace with 'null'" "true"
import java.util.stream.*;
class Test {
public static void method() {
Object obj = null;
Stream<Object> stream = Stream.of((Object) null);
}
}