unused symbol inspection: mark method parameter used if method is used as method reference IDEA-210306

GitOrigin-RevId: 086a276669ee3dba969f8ea2334af157890594dc
This commit is contained in:
Dmitry Batkovich
2019-05-08 13:45:33 +02:00
committed by intellij-monorepo-bot
parent 6cc0a96a98
commit db60b80cc4
11 changed files with 45 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ class MyTest<T> {
public static class Builder<E> {
public Builder<E> add(E <warning descr="Parameter 'element' is never used">element</warning>) {
public Builder<E> add(E element) {
return this;
}

View File

@@ -8,6 +8,6 @@ class Main {
}
public static boolean checkForJdk(String <warning descr="Parameter 'homePath' is never used">homePath</warning>) {return false;}
public static boolean checkForJdk(File <warning descr="Parameter 'homePath' is never used">homePath</warning>) {return false;}
public static boolean checkForJdk(File homePath) {return false;}
}