Cleanup (warnings; typos; formatting)

GitOrigin-RevId: 1cad4232ba1d1f58c522aa26019d245e2bf6832d
This commit is contained in:
Roman Shevchenko
2019-06-12 21:06:43 +02:00
committed by intellij-monorepo-bot
parent d5fb24d414
commit 04e6f4a623
279 changed files with 3794 additions and 2457 deletions

View File

@@ -0,0 +1,27 @@
import java.util.function.Function;
class MyTest {
{
Function<B, Try<A>> aNew = Try::new;
Try<B> bTry = new Try<>(new B());
Try<A> aTry = bTry.flatMap(Try::new);
}
private static class A { }
private static class B extends A { }
private static class Try<T> {
public Try(T t) {
}
public Try(Exception e) {
}
public <U> Try<U> flatMap(Function<? super T, Try<U>> mapper) {
return null;
}
}
}