I want to refactor a java class source code (with Eclipse) coded like a pure non-object language: there is only instance methods (public or private) but some of them should be static (no dependency with instance fields or other methods).
Is Eclipse able to detect it and refactor the code, i.e. refactor some "public" methods to "private static" ?
According to the page on Eclipse's Java Compile Errors/Warnings Preferences, you can do it by enabling the "Method can be static" code option, which is ignored by default.
After recompiling you would get a list of instance methods in your code that can be refactored as static methods.