Summary: | [refactoring] Convert instance methods to static if they don't refer to non-static members | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Corbin <dcorbin> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | albzey+eclipsebugs, daniel_megert, dirk_baeumer, gautier.desaintmartinlacaze, jared_burns, luke.hutch, markus.kell.r, reprogrammer, timo.kinnunen |
Version: | 2.0 | Keywords: | helpwanted, investigate |
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
David Corbin
2002-03-01 14:03:22 EST
agreed that this would be useful, but we can't commit to do it for 2.0 We should also convert the call to that method to something like class.method(). 2.1 candidate [refactoring] *** Bug 24288 has been marked as a duplicate of this bug. *** Chaning state from assigned later to resolved later. Assigned later got introduced by the last bug conversion and is not a supported Eclipse bug state. *** Bug 118032 has been marked as a duplicate of this bug. *** *** Bug 118032 has been marked as a duplicate of this bug. *** dup of bug 118032 *** This bug has been marked as a duplicate of bug 118032 *** Not a dup of bug 118032. This would better be implemented as a Clean Up, since it does not refactor much (only analyzes and adds a modifier). E.g. Code Style > Method declarations > Use modifier 'static' where possible. >This would better be implemented as a Clean Up
I was thinking of that too but came too the conclusion that it is more than a clean up since it really changes the class (not just applying different style) and also affects runtime behavior in case someone overrode the instance method.
*** Bug 338449 has been marked as a duplicate of this bug. *** IDEA can handle the case, too, where the method refers to non-static members: they are passed as parameters. (In reply to comment #14) > IDEA can handle the case, too, where the method refers to non-static members: > they are passed as parameters. That's bug 118032. *** Bug 483995 has been marked as a duplicate of this bug. *** |