SimplifyStreamApiCallChainsInspection: fixed toArray conversion

This commit is contained in:
Tagir Valeev
2017-02-03 16:18:48 +03:00
parent a529975033
commit b210302118
2 changed files with 10 additions and 0 deletions
@@ -0,0 +1,9 @@
// "Replace 'collection.stream().toArray()' with 'collection.toArray()'" "false"
import java.util.*;
class Test {
public void testToArray(List<String> data) {
Object[] array = data.stream().map(x -> x).to<caret>Array();
}
}