Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362267 - [xtend][ui] organize imports doesn't remove all unused imports
Summary: [xtend][ui] organize imports doesn't remove all unused imports
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: M4   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 361386 364971 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-28 02:31 EDT by Knut Wannheden CLA
Modified: 2017-10-31 10:57 EDT (History)
4 users (show)

See Also:
sven.efftinge: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Wannheden CLA 2011-10-28 02:31:14 EDT
Given two Xtend files foo/Foo.xtend and bar/Bar.xtend:

package foo

import bar.Bar
import com.google.inject.Inject

public class Foo {
	@Inject bar.Bar bar
}


and:


package bar

class Bar {
}


There is a warning marker on the "import bar.Bar". But invoking the quick fix or the Organize Imports action directly does not have any effect and the warning marker remains.
Comment 1 Sebastian Zarnekow CLA 2011-10-28 02:35:30 EDT
*** Bug 361386 has been marked as a duplicate of this bug. ***
Comment 2 Moritz Eysholdt CLA 2011-11-28 11:10:43 EST
*** Bug 364971 has been marked as a duplicate of this bug. ***
Comment 3 Jan Koehnlein CLA 2012-12-12 12:00:50 EST
Fixed in HEAD: Import satys untouched and the field declaration is now shortened to
  @Inject Bar bar
Comment 4 Eclipse Webmaster CLA 2017-10-31 10:46:39 EDT
Requested via bug 522520.

-M.
Comment 5 Eclipse Webmaster CLA 2017-10-31 10:57:54 EDT
Requested via bug 522520.

-M.