mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
new inference: don't treat void as primitive type to boxing
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class ABC {
|
||||
private <T> void <warning descr="Private method 'foo(java.util.function.Supplier<T>)' is never used">foo</warning>(Supplier<T> <warning descr="Parameter 'dictSeqs' is never used">dictSeqs</warning>) {
|
||||
}
|
||||
private void foo(Runnable <warning descr="Parameter 'r' is never used">r</warning>) {}
|
||||
|
||||
{
|
||||
foo(() -> bar());
|
||||
foo(this::bar);
|
||||
}
|
||||
|
||||
void bar(){}
|
||||
}
|
||||
Reference in New Issue
Block a user