Replace interface with implementation
Hi people. This must be a really easy one but I can't find it anywhere.
I have an interface that has only got one implementation and so I want to get rid of the interface and use the implementation in all places.
How do you do it?
Thanks, Paul.
请先登录再写评论。
Hello Paul,
Try to inline interface (Ctrl-Alt-N) on the interface in implements list.
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Oh thanks. Yeah, I tried that yesterday but it listed loads of "problems" so I just cancelled it without reading them. It turns out the problems it reported were exactly what I wanted to happen!
Thanks for the info, Paul.