lambda: take care of diamonds

This commit is contained in:
Anna Kozlova
2012-09-03 13:44:04 +04:00
parent 7d2b48c00a
commit c7781bb05f
2 changed files with 12 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ public class BugReportLambdaSquiggles<T> {
static void bar( BugReportLambdaSquiggles<Integer> x) {
x.flatMap(t1 -> new ArrayList<String>(t1));
x.flatMap(t1 -> new ArrayList<>(t1));
}
interface Mapper<T, U> {