mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
move instance method: update method reference qualifier according to the method reference shape (IDEA-155147)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
private static class Destination{ }
|
||||
|
||||
private final Destination destination = new Destination();
|
||||
|
||||
public void main(Stream<String> stream, Test ref){
|
||||
stream.filter(ref::notNull);
|
||||
}
|
||||
|
||||
private boolean not<caret>Null(String it) {
|
||||
return it != null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user