Files
openide/java/java-tests/testData/inspection/optionalChains/beforeStreamJava9.java
Tagir Valeev a8259d29d2 OptionalRefactoringUtil: do not suggest opt.map().stream() -> opt.stream().flatMap() if operation may have side-effect
Side-effect is allowed for Optional.map, but not allowed for Stream.flatMap, and actually may cause a semantics change
Fixes IDEA-207178 Incorrect simplification of optional suggested by inspection
2019-02-15 12:27:18 +07:00

1.3 KiB