Apply the change from Develar: cleanup - specify UTF_8 charset explicitly

GitOrigin-RevId: 3f5cfd958d9b6b54393c15983ac94f519c37fe61
This commit is contained in:
Leonid Bushuev
2019-05-03 01:46:11 +03:00
committed by intellij-monorepo-bot
parent 422480a2a1
commit 34be4bbf7d
1362 changed files with 14143 additions and 17960 deletions
@@ -1,14 +0,0 @@
// "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;
}
}
}