Java – refactoring static methods into instance methods in eclipse
How can I refactor
class Plugh { static void foo(Bar bar); }
become
class Bar { void foo(); }
Using eclipse? Iow converts a static method to an instance method of one of the parameters
Solution
Delete the "static" keyword and perform the "move method" refactoring It should provide "bar" as the target class
(it seems crazy to me that eclipse only performs this operation on non static methods, but that's how it works. It seems to me that it's a mistake. Maybe I should contribute to fixing it, not just complain about it!
The above is the whole content of Java - refactoring static methods into instance methods in eclipse collected by programming house for you. I hope this article can help you solve the program development problems encountered by Java - refactoring static methods into instance methods in eclipse.
If you think the content of the programming home website is good, you are welcome to recommend the programming home website to programmers and friends.