简体   繁体   中英

In Eclipse, is it possible to find all methods in project that take a certain parameter type?

So that's basically my question. I'm converting all methods ArrayLists to HashMaps in parameterized methods, but I don't want to convert all ArrayLists to HashMaps since there are a few that are used locally. This is more of a curiosity than anything, but it would be useful.

So, in Eclipse, is it possible to find all methods in project that take a certain parameter type?

Press Ctrl + H or from menu bar Search - Search ... , then choose Java Search : 在此输入图像描述

Then click Limit To - Match locations (x of 15 selected): 在此输入图像描述

This should give what you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM