Can you pull up members to an interface without annotation
Can you configure Intellij to pull up methods that have annotations to their classes' interface without the accompanying annotations.
At the moment, if I have a class that implements an interface in Java. When I add the @Override annotation to a method in that class, I get an error, since there is no interface method or superclass method that is being overriden. I then select from the context menu the option to "Pull 'xxx' method up" and choose the interface. The method appears in the interface with its method annotations that I had previously added to that method in the implementation class.
This is undesirable, since the annotations relate only to the implementation. Is there a way to stop this automatic behavior of including the target method annotation?
Please sign in to leave a comment.
Hello Peter,
Currently it's not possible. Feel free to create feature request on YouTrack: http://youtrack.jetbrains.com/issues/IDEA.
Done IDEA-191193.
Thank you