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/CommentRegion.java
/**
	 * Returns the line delimiter used in this comment line break.
	 * 
	 * @param predecessor
	 *                  The predecessor comment line before the line break
	 * @param successor
	 *                  The successor comment line after the line break
	 * @param previous
	 *                  The comment range after the line break
	 * @param next
	 *                  The comment range before the line break
	 * @param indentation
	 *                  Indentation of the formatted line break
	 * @return The line delimiter for this comment line break
	 */
	protected String getDelimiter(final CommentLine predecessor, final CommentLine successor, final CommentRange previous, final CommentRange next, final String indentation) {
		return fDelimiter + indentation + successor.getContentPrefix();
	}
	/**
	 * Returns the range delimiter for this comment range break in this comment
	 * region.
	 * 
	 * @param previous
	 *                  The previous comment range to the right of the range delimiter
	 * @param next
	 *                  The next comment range to the left of the range delimiter
	 * @return The delimiter for this comment range break
	 */
	protected String getDelimiter(final CommentRange previous, final CommentRange next) {
		return COMMENT_RANGE_DELIMITER;