| Summary: | [generalize type] does not remove unused imports | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Tobias Widmer <tobias_widmer> |
| Component: | UI | Assignee: | Kalyan Prasad Tatavarthi <kalyan_prasad> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, tip |
| Version: | 3.1 | ||
| Target Milestone: | 4.16 M1 | ||
| Hardware: | PC | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/160170 https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=1a7ac9368c336594db32b7cd31049b7b6777d803 |
||
| Whiteboard: | |||
Not ciritical. However we should fix this for 3.2 since other refactorings now remove unused imports as well. *** Bug 99671 has been marked as a duplicate of this bug. *** 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. Kalyan, please check whether this is still the case (low prio). (In reply to Dani Megert from comment #4) > Kalyan, please check whether this is still the case (low prio). This bug is still reproducible New Gerrit change created: https://git.eclipse.org/r/160170 Gerrit change https://git.eclipse.org/r/160170 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=1a7ac9368c336594db32b7cd31049b7b6777d803 Verified in the build I20200406-0600 |
3.1 RC2 package p; import java.util.ArrayList; import java.util.List; public class Test { public void foo() { List<String> list= new ArrayList<String>(); } } - Invoke Generalize Type on variable list and choose Type Collection<String>