Project: JDT
Bug 99974 [refactoring] Inline method deletes all comments
Reported: 2005-06-14 11:04:05 | Status: resolved fixed

In RC2. Given code: public class Foo { private int bar() { // an important fact about a int a = 1; // an important fact about returning return a; // one final precious thought } private void baz() { bar(); } } Inlining bar deletes all of the inline comments.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/simple_in/TestComment1.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/simple_out/TestComment1.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/SourceProvider.java