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,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;
}
}