Search for all instances of foo (Bar.class)

Does eclipse have an easy way to find all method calls based on argument type? For example, if aand bare instances Fooand xand yare instances Bar, I want to find foo(x)and foo(y), but not foo(a)or foo(b).

+3
source share
1 answer

You can temporarily declare an overloaded "fake" foo method with the specific parameter types you are interested in. All relevant calls to real foo should be allowed to fake. Then do "Find all links" for fake foo (before deleting).

[EDIT]

. , , , .

+2

All Articles