Bug 99135 [typing] Blank line causes javadoc indentation regression
In N20050609-0010. Given a javadoc comment: /** * oops, extra return there. */ public static String noop() { return ""; } Select All on the file, then Source > Correct Indentation. N20050608-0010 leaves this unchanged. N20050609-0010 (the latest), formats this as /** * oops, extra return there. */ Likely minor (who does that?), but a regression.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java
int tabSize= getTabSize();
				while (slashes > 0 && computed.length() > 0) {
					char c= computed.charAt(0);
					if (c == '\t')
						if (slashes > tabSize)
							slashes-= tabSize;
						else
							break;
					else if (c == ' ')
						slashes--;
					else break;
					
					computed.deleteCharAt(0);
				}
				
				indent= document.get(offset, wsStart - offset) + computed;
				
			}
		} 
		
		
		if (indent == null) {
			StringBuffer computed= indenter.computeIndentation(offset);
			if (computed != null)
				indent= computed.toString();
			else
				indent= new String();
		}