mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
IDEA-187747 Suggest Collectors.joining() collector for String stream
This commit is contained in:
@@ -2,6 +2,6 @@ import java.util.*;
|
||||
|
||||
class Foo {
|
||||
void m() {
|
||||
Arrays.asList("a", "b").stream().colle<caret>
|
||||
Arrays.asList(1, 2).stream().colle<caret>
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
class Foo {
|
||||
void m() {
|
||||
Arrays.asList("a", "b").stream().collect(Collectors.toCollection(<caret>))
|
||||
Arrays.asList(1, 2).stream().collect(Collectors.toCollection(<caret>))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import java.util.*;
|
||||
|
||||
class Foo {
|
||||
void m() {
|
||||
Arrays.asList("a", "b").stream().join<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import java.util.*;
|
||||
|
||||
class Foo {
|
||||
void m() {
|
||||
String l = Arrays.asList("a", "b").stream().collect(joi<caret>)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
class Foo {
|
||||
void m() {
|
||||
String l = Arrays.asList("a", "b").stream().collect(Collectors.joining(<caret>))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
class Foo {
|
||||
void m() {
|
||||
Arrays.asList("a", "b").stream().collect(Collectors.joining(<caret>))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user