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
} catch (BadLocationException exception) {
			
		}
	}
	/**
	 * Appends the comment range to this comment region.
	 * 
	 * @param range
	 *                  Comment range to append to this comment region
	 */
	protected final void append(final CommentRange range) {
		fRanges.addLast(range);
	}
	/**
	 * Applies the formatted comment region to the underlying document.
	 * 
	 * @param indentation
	 *                  Indentation of the formatted comment region
	 * @param width
	 *                  The maximal width of text in this comment region measured in
	 *                  average character widths
	 */
	protected void applyRegion(final String indentation, final int width) {
		final int last= fLines.size() - 1;
		if (last >= 0) {
			CommentLine previous= null;
			CommentLine next= (CommentLine)fLines.get(last);
			CommentRange range= next.getLast();
			next.applyEnd(range, indentation, width);
			for (int line= last; line >= 0; line--) {