warn about unused parameter if method is used locally as method reference as it could be transformed to equivalent lambda (IDEA-157988)

This commit is contained in:
Anna Kozlova
2016-06-29 18:45:13 +03:00
parent eb937bc8d7
commit 1193a54876
8 changed files with 7 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ class MyTest<T> {
public static class Builder<E> {
public Builder<E> add(E element) {
public Builder<E> add(E <warning descr="Parameter 'element' is never used">element</warning>) {
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 homePath) {return false;}
public static boolean checkForJdk(File <warning descr="Parameter 'homePath' is never used">homePath</warning>) {return false;}
}