Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362267

Summary: [xtend][ui] organize imports doesn't remove all unused imports
Product: [Tools] Xtend Reporter: Knut Wannheden <knut.wannheden>
Component: CoreAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: jan, moritz.eysholdt, sebastian.zarnekow, sven.efftinge
Version: 2.2.0Flags: sven.efftinge: kepler+
Target Milestone: M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.