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:
+16
@@ -0,0 +1,16 @@
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
private static class Destination{
|
||||
private boolean notNull() {
|
||||
return this != null;
|
||||
}
|
||||
}
|
||||
|
||||
private final Destination destination = new Destination();
|
||||
|
||||
public void main(Stream<Destination> stream){
|
||||
stream.filter(Test.Destination::notNull);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user