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
tab= buf.toString();
		} else
			tab= "\t"; 
	
		return tab;
	}
	
	/**
	 * Returns the tab size used by the java editor, which is deduced from the
	 * formatter preferences.
	 * 
	 * @return the tab size as defined in the current formatter preferences
	 */
	private int getTabSize() {
		return getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE, 4);
	}
	
	/**
	 * Returns the possibly project-specific core preference defined under <code>key</code>.
	 * 
	 * @param key the key of the preference
	 * @return the value of the preference
	 * @since 3.1
	 */
	private String getCoreFormatterOption(String key) {
		IJavaProject project= getJavaProject();
		if (project == null)
			return JavaCore.getOption(key);
		return project.getOption(key, true);
	}