unused return value inspection: method reference awareness (IDEA-134991)

This commit is contained in:
Anna Kozlova
2015-01-07 12:21:52 +01:00
parent 49a192f27f
commit 49f82c1948
4 changed files with 38 additions and 1 deletions
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,13 @@
import java.util.function.Consumer;
import java.util.function.DoubleSupplier;
class B {
public void test(Consumer<DoubleSupplier> consumer) {
consumer.accept(this::method);
}
private double method() {
return 1;
}
}