Bug 48975 Comment Formatter should compare values using equals()
Currently, the preference values are read and compared by reference, which only works in special circumstances.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentFormattingContext.java
/*
	 * @see org.eclipse.jface.text.formatter.IFormattingContext#getPreferenceKeys()
	 */
	public String[] getPreferenceKeys() {
		return new String[] { PreferenceConstants.FORMATTER_COMMENT_FORMAT, PreferenceConstants.FORMATTER_COMMENT_FORMATHEADER, PreferenceConstants.FORMATTER_COMMENT_FORMATSOURCE, PreferenceConstants.FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION, PreferenceConstants.FORMATTER_COMMENT_INDENTROOTTAGS, PreferenceConstants.FORMATTER_COMMENT_NEWLINEFORPARAMETER, PreferenceConstants.FORMATTER_COMMENT_SEPARATEROOTTAGS, PreferenceConstants.FORMATTER_COMMENT_LINELENGTH, PreferenceConstants.FORMATTER_COMMENT_CLEARBLANKLINES, PreferenceConstants.FORMATTER_COMMENT_FORMATHTML };
	}
	/*
	 * @see org.eclipse.jface.text.formatter.IFormattingContext#isBooleanPreference(java.lang.String)
	 */
	public boolean isBooleanPreference(String key) {
		return !key.equals(PreferenceConstants.FORMATTER_COMMENT_LINELENGTH);
	}
	/*
	 * @see org.eclipse.jface.text.formatter.IFormattingContext#isIntegerPreference(java.lang.String)
	 */
	public boolean isIntegerPreference(String key) {
		return key.equals(PreferenceConstants.FORMATTER_COMMENT_LINELENGTH);
	}
}