Community
Participate
Working Groups
Build Identifier: Extracted method will not be set as a static method even if it do not use any Fileds from the class or class methods Reproducible: Always Steps to Reproduce: 1.Write: System.out.println("Hello"); 2. Use Refactoring and Extract Method for this line 3.A method is created but it is not set as a static method, even if it does not use any class-specific code
We could add a checkbox to make the method static. Checkbox should only be enabled when the static modifier is not added by default and does not refer to 'this' (i.e. do bug 10605, not bug 118032).
*** Bug 450978 has been marked as a duplicate of this bug. ***
For reference: I understood bug 450978 as requesting s.t. closer to bug 118032 than to bug 10605.