IDEA-167574 Provide inspection for find redundant StreamSupport.stream

Refactor SimplifyStreamApiCallChainsInspection
This commit is contained in:
Tagir Valeev
2017-02-03 10:40:11 +03:00
parent f3c188db81
commit 0bc8981efa
14 changed files with 272 additions and 202 deletions
@@ -5,7 +5,7 @@ import java.util.List;
public class Test {
public void test(List<List<String>> list) {
List<?>[] arr = list.stream().toArray(List[]::new);
List<?>[] arr = list.toArray(new List[0]);
System.out.println(Arrays.toString(arr));
}
}