mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-14 08:20:59 +07:00
CPP-16098 - Lags during inplace rename typing
- reverted some of the changes GitOrigin-RevId: c7c07b80a76c29794ef31e0e916e62f7f302917a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e1bb280f82
commit
c33e69a545
+14
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user