我无法使用Eclipse重构删除方法? [英] I can't delete a method using eclipse refactoring?

查看:80
本文介绍了我无法使用Eclipse重构删除方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要删除的方法。从n个类中调用此方法。我想使用重构删除此方法,并使eclipse删除对此方法的所有调用,而不是去清理每个文件。我无法从重构中找到直接的方法(我正在使用ganymede)

I have a method which I want to delete. This method is being called from n number of classes. I want to delete this method using refactoring and also make eclipse delete all calls to this method rather than go and clean up in each file. I could not find a straight way to do this from refactor (I am using ganymede)

推荐答案


  1. 删除方法主体

  2. 然后选择方法

  3. Refactor->内联

  1. Delete the method body
  2. Then select the method
  3. Refactor -> Inline

这篇关于我无法使用Eclipse重构删除方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆