Project: JDT
Bug 77440 Import not removed when moving static member [refactoring][move]
Reported: 2004-11-01 19:14:08 | Status: resolved fixed

I200410260800 package p1; import p2.B; public class A { int field= B.VALUE; } --------------------------------------------------- package p2; public class B { public static final int VALUE= 10; } --------------------------------------------------- package p3; public class C { } Move B#Value to p3.C. Observe that the import p2.B in A isn't removed.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveStaticMemberAnalyzer.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveStaticMembersProcessor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MovedMemberAnalyzer.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ReferenceAnalyzer.java