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
String delim;
			String insertion;
			int offset;
			if (fUpwards) {
				delim= document.getLineDelimiter(skippedLine.getEndLine());
				Assert.isNotNull(delim);
				if (fCopy) {
					insertion= moving + delim;
					offset= movingArea.getOffset();
				} else {
					insertion= moving + delim + skipped;
					offset= skippedLine.getOffset();
				}
			} else {
				delim= document.getLineDelimiter(movingArea.getEndLine());
				Assert.isNotNull(delim);
				if (fCopy) {
					insertion= moving + delim;
					offset= skippedLine.getOffset();
				} else {
					insertion= skipped + delim + moving;
					offset= movingArea.getOffset();
				}
			}
			int lenght= fCopy ? 0 : insertion.length();
			
			ILineRange selectionBefore= getLineRange(document, movingArea);
			
			if (fCopy)
				fSharedState.endCompoundEdit();