forked from phoedos/pmd
Ensure types don't match
This commit is contained in:
parent
1ceae38880
commit
b6f45ed618
@ -2306,7 +2306,7 @@ import java.util.Set;
|
||||
public class Foo {
|
||||
private void foo(AnotherUnresolvedType baz) {}
|
||||
private void foo(UnresolvedType baz) {}
|
||||
public void bar(Set<UnresolvedType> s) {
|
||||
public void bar(Set<SomeOtherUnresolvedType> s) {
|
||||
s.forEach(this::foo); // Not being able to resolve UnresolvedType and AnotherUnresolvedType means we can't tell which foo is being used here…
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user