move instance method: update method reference qualifier according to the method reference shape (IDEA-155147)

This commit is contained in:
Anna.Kozlova
2016-04-25 14:41:56 +02:00
parent a1ae485b22
commit 35a27be930
9 changed files with 131 additions and 4 deletions
@@ -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);
}
}