mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
SimplifyStreamApiCallChainsInspection: fixed toArray conversion
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user