Eclipse find references for method

前端 未结 4 1089
借酒劲吻你
借酒劲吻你 2021-01-04 03:54

I wanted to find all the callers of the the method \"get\" for the following class:

package com.zzz.zzz.zzz.services;

public final class EMF {
  private sta         


        
4条回答
  •  旧时难觅i
    2021-01-04 04:36

    Sometimes, if you have multiple methods of the same name, e.g., constructors of a class, all with the same name but different signature, for example, it can be a pain to find all callers of one of those constructors. A trick you can use is to comment out the one you are investigating, and build. The compiler will then tell you all the places it is unable to find that signature, and hence these are exactly all the places that are trying to call that method with that name and that particular signature.

提交回复
热议问题