Bug 99725 [typing] Moving first line of header comment increases indentation
Given a class like this: /** * Header comment */ class Foo { } Put the cursor on the first line, and use Alt+Down, Alt+Up to move it down, and then up. An extra space is added in front. If you now select the entire file and use Source > Indent, the whole file is shifted one character to the right.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaMoveLinesAction.java
fSharedState.beginCompoundEdit();
			fSharedState.fIsChanging= true;
			document.replace(offset, lenght, insertion);
			
			ILineRange selectionAfter;
			if (fUpwards && fCopy)
				selectionAfter= selectionBefore;
			else if (fUpwards)
				selectionAfter= new LineRange(selectionBefore.getStartLine() - 1, selectionBefore.getNumberOfLines());
			else if (fCopy)
				selectionAfter= new LineRange(selectionBefore.getStartLine() + selectionBefore.getNumberOfLines(), selectionBefore.getNumberOfLines());
			else
				selectionAfter= new LineRange(selectionBefore.getStartLine() + 1, selectionBefore.getNumberOfLines());
			
			fSharedState.fResult= IndentUtil.shiftLines(document, selectionAfter, getProject(), fSharedState.fResult);
			
			
			IRegion region= getRegion(document, selectionAfter);
			selectAndReveal(viewer, region.getOffset(), region.getLength());
			
		} catch (BadLocationException x) {
			
			return;
		} finally {
			fSharedState.fIsChanging= false;
			if (fCopy)
				fSharedState.endCompoundEdit();
		}
	}
	private IJavaProject getProject() {