Bug 77950 Move Instance Method: should adapt Javadocs [refactoring] [move method]
I200411042000 References in Javadocs should be updated when a method is moved. Given: package p; class C { public void caller() { method(new Other()); } /** * Doku * @see #caller() */ public void method(Other arg) { arg.toString(); } } class Other { } - Move method(..) to parameter arg => The MethodRef #caller() must be qualified by C or p.C - From original code, move method(..) to parameter arg, creating a delegate => The MethodRef #caller() in the new method's Javadoc must be qualified by C or p.C. Should also think about whether the javadoc should really be duplicated.
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test26/in/TR.java
package p1;
import java.util.List;
public class TR {
	protected void run(final TC test) {
		List<Integer> integers= null;
		startTest(test);
		P p= new P() {
			public void protect() throws Throwable {
				test.runBare();
				handleRun(test);
			}
		};
		runProtected(test, p);
		endTest(test);
	}
	private void handleRun(TC test) {
	}
	private void runProtected(TC test, P p) {
	}
	private void endTest(TC test) {
	}
	private void startTest(TC test) {
	}
}