IDEA-170033 Support raw-types when converting Iterable.forEach to loop

This commit is contained in:
Tagir Valeev
2017-03-22 16:51:46 +07:00
parent c4a2da99c5
commit b0c584a295
3 changed files with 14 additions and 4 deletions
@@ -25,6 +25,12 @@ public class Main {
return collection;
}
void testRawTypeSupport(List<List> list) {
for (List l : list) {
System.out.println(l.size());
}
}
public interface SomeInterface {
Set<? extends SomeInterface> nodes();
@@ -19,6 +19,10 @@ public class Main {
return collection;
}
void testRawTypeSupport(List<List> list) {
list.forEach(l -> System.out.println(l.size()));
}
public interface SomeInterface {
Set<? extends SomeInterface> nodes();