java completion: suggest Objects::nonNull where applicable (IDEA-192789)

This commit is contained in:
peter
2018-06-04 18:18:35 +02:00
parent a9de3ce543
commit cb981a0ef5
4 changed files with 48 additions and 6 deletions
@@ -0,0 +1,12 @@
import java.util.*;
class MyTest {
public interface Child {}
{
List<Child> children = new ArrayList<>();
children.stream().filter(Objects::nonNull)<caret>
}
}
@@ -0,0 +1,12 @@
import java.util.*;
class MyTest {
public interface Child {}
{
List<Child> children = new ArrayList<>();
children.stream().filter(non<caret>)
}
}