Project: JDT
Bug 72836 [refactor] InLine simple method with "this." created extra code
Reported: 2004-08-27 22:38:45 | Status: verified fixed

For example, start with: public class InLineTest { private void foo() { System.out.println(); } private void bar() { this.foo(); } } Select foo() to in-line and you get: public class InLineTest { private void bar() { InLineTest r = this; // THIS EXTRA LINE IS NOT NEEDED AT ALL! ;-) System.out.println(); } } Version 3.1M1.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/bugs_in/Test_72836.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/bugs_out/Test_72836.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/CallInliner.java