mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 08:13:09 +07:00
unused return value inspection: method reference awareness (IDEA-134991)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user