How to add the class's implemented method to the interface?

Hi!
How to add some method of class to the interface of this class in refactoring mode?
(Java)

0
Avatar
Permanently deleted user

Refactor > Pull members up

0
Avatar
Permanently deleted user

Oh, thx!

0
Avatar
Permanently deleted user

another trick is to add @Override annotation to your method and than invoke inspection (ALT+ ENTER) and choose either "extract interface" or "pull members up" or "pull method YOURMethod to YOURinterface"

0

请先登录再写评论。