Community
Participate
Working Groups
Steps to reproduce: - Enable "Method can be static" warnings - Copy the method below into a class Issue: - Method could actually be static, but it is not being marked as such. Resolution: I am not familiar with the eclipse source code, but I assume the warning is shown when a method does not call *any* instance methods. The correct behavior would be to check that a method does not call any instance methods *other than itself*. Code sample: private int factorial(final int n) { return n < 2 ? 1 : n * factorial(n - 1); }
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.