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

@@ -77,7 +77,7 @@ abstract class AbstractCollection<E> implements Collection<E> {
public boolean add(E e) {
return true;
}
public boolean addAll(Collection<? extends E> c) {
public boolean addAll(Collection<? extends E> <warning descr="Parameter 'c' is never used">c</warning>) {
boolean modified = false;
return modified;
}