eclipse refactoring - pull up method to interface

后端 未结 1 1071
离开以前
离开以前 2021-01-11 17:26

How can I change the default behaviour of eclipse so that it does not prepend the methods it pulls up to an interface with \"public abstract\"

example, I have a

相关标签:
1条回答
  • 2021-01-11 18:21

    I was just looking at the same thing to see if it had changed and I found your question. In fact this is Eclipse Bug 71627. However there is a simple work around: instead of using Refactor->Pull Up, use Quick fix (Ctrl+1)->Create 'method()' in super interface X.

    It also has the advantage that it leads you directly to the new method declaration, so that you can directly write the javadoc, change parameter names etc.

    0 讨论(0)
提交回复
热议问题