Bug 547843 - Provide "Collapse Hierarchy" refactoring to inline interfaces
Summary: Provide "Collapse Hierarchy" refactoring to inline interfaces
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.12   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-02 03:57 EDT by art CLA
Modified: 2023-06-04 18:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description art CLA 2019-06-02 03:57:57 EDT
It would be useful to have a "Collapse Hierarchy" refactoring available to work with especially large legacy codebases. This would replace a single interface with a single implementation with the implementation itself, or likewise an abstract class with a single subclass with the subclass

E.g with code like this
interface Employee {...}
class Worker implements Employee {...}

Reduce to =>
class Worker{...} // or Employee depending on choice(?)

This is available in Intellij as Inline interface
Comment 1 Eclipse Genie CLA 2021-05-23 13:25:17 EDT
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.
Comment 2 Eclipse Genie CLA 2023-06-04 18:58:32 EDT
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.