Summary: | [inline] Inline local from reference should allow inlining single occurrence | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Woody Zenfell III <woodyzenfell+test> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | markus.kell.r, pbenedict |
Version: | 3.7 | Keywords: | helpwanted |
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Woody Zenfell III
2011-03-30 10:58:46 EDT
Sorry, for added clarity I should have included the 'final' keyword on at least bar's declaration. Agree that this could be helpful. Inline Local Variable should work the same way as Inline Constant (same UI and same default options, depending on whether a reference or a declaration is selected). Can this ticket can be expanded to inlining single instances of a constant? I extracted a string constant in my source file, and then realized this was a mistake. The identical string was being used for 2 different purposes; I needed to go back and inline where the context was different. The strings being equal were just a design coincidence. |