redundant lambda param types: take site subst into account

This commit is contained in:
Anna Kozlova
2014-02-25 22:03:27 +01:00
parent 994eb2c467
commit e967a04b4b
4 changed files with 31 additions and 2 deletions
@@ -0,0 +1,10 @@
// "Remove redundant types" "true"
import java.util.*;
public class Sample {
List<String> foo = new ArrayList<>();
{
foo.forEach(s -> {});
}
}
@@ -0,0 +1,10 @@
// "Remove redundant types" "true"
import java.util.*;
public class Sample {
List<String> foo = new ArrayList<>();
{
foo.forEach((Str<caret>ing s) -> {});
}
}