mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java completion: suggest Objects::nonNull where applicable (IDEA-192789)
This commit is contained in:
@@ -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>)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user