testdata for IDEA-140035

This commit is contained in:
Anna Kozlova
2015-08-18 20:33:12 +02:00
parent 3eae59e3a4
commit 6b08a2da04
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import java.util.List;
import java.util.stream.Collectors;
class Test {
static class Row {
public String get(int index) {
return "test";
}
}
void foo(List<Row> list) {
list.stream().collect(
Collectors.toMap(a -> String.valueOf(a.get(0)), a -> String.valueOf(a.get(1))));
}
}