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

Bug 279250

Summary: [pull up] 'pull up' to interface generates unused imports in the interface
Product: [Eclipse Project] JDT Reporter: Tomasz Bartczak <kretes>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, Olivier_Thomann, reprogrammer
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Tomasz Bartczak CLA 2009-06-05 09:06:18 EDT
Build ID: I20090522-1710

Steps To Reproduce:
testcase:
#File1

 org.eclipse;

import java.util.Arrays;

public class TestCase implements ITestCase {

	String property;

	public String getProperty() {
		property = Arrays.class.toString();
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}
		
}

#File2
package org.eclipse;

public interface ITestCase {
}

now go to TestCase.java | refactor | pull up | select 'getProperty() | Finish

the interface looks like this:
-----------------------------
package org.eclipse;

import java.util.Arrays;

public interface ITestCase {

	public String getProperty();

}

with unused and not necessary import
Comment 1 Olivier Thomann CLA 2009-06-05 09:08:52 EDT
Move to JDT/UI
Comment 2 Dani Megert CLA 2009-06-05 09:34:48 EDT

*** This bug has been marked as a duplicate of bug 35167 ***