CPP-16098 - Lags during inplace rename typing

- reverted some of the changes

GitOrigin-RevId: c7c07b80a76c29794ef31e0e916e62f7f302917a
This commit is contained in:
Vladimir Plyashkun
2019-05-03 01:47:14 +03:00
committed by intellij-monorepo-bot
parent e1bb280f82
commit c33e69a545
1385 changed files with 18116 additions and 14001 deletions
@@ -0,0 +1,14 @@
// "Replace Optional.isPresent() condition with functional style expression" "false"
import java.util.Optional;
class Test {
Object get() {
Optional<String> obj = Stream.of("one", "two").filter(s -> Math.sqrt(s.length()) > 100).findFirst();
if (obj.<caret>isPresent()) {
return obj.get();
} else {
return 7;
}
}
}