IDEA-188654 Stream API methods autocomplete

GitOrigin-RevId: c4e2caba222324726aad91148ab37c0acf4fd86a
This commit is contained in:
Peter Gromov
2020-06-08 10:10:09 +02:00
committed by intellij-monorepo-bot
parent fb3d2a86d9
commit 847bb51000
10 changed files with 161 additions and 15 deletions

View File

@@ -0,0 +1,5 @@
class Foo {
void foo(String[] array) {
array.<caret>
}
}

View File

@@ -0,0 +1,7 @@
import java.util.Arrays;
class Foo {
void foo(String[] array) {
Arrays.stream(array).map(<caret>)
}
}

View File

@@ -0,0 +1,9 @@
class Foo {
void foo(MyList<String> list) {
list.<caret>
}
}
class MyList<T> extends java.util.List<T> {
void filter();
}

View File

@@ -0,0 +1,9 @@
class Foo {
void foo(MyList<String> list) {
list.stream().map(<caret>)
}
}
class MyList<T> extends java.util.List<T> {
void filter();
}