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/JavaDocRegion.java
range= tracker.getLineInformation(line);
				index= range.getOffset();
				content= getText(index, range.getLength());
				if (!content.startsWith(test))
					applyText(delimiter, index, 0);
			}
		} catch (BadLocationException exception) {
			
		}
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.text.comment.CommentRegion#formatRegion(java.lang.String)
	 */
	public void format(final String indentation) {
		IPositionUpdater updater= null;
		final IDocument document= getDocument();
		if (fFormatSource) {
			document.addPositionCategory(CODE_POSITION_CATEGORY);
			updater= new DefaultPositionUpdater(CODE_POSITION_CATEGORY);
			document.addPositionUpdater(updater);
		}
		super.format(indentation);
		if (fFormatSource) {
			try {
				document.removePositionCategory(CODE_POSITION_CATEGORY);
				document.removePositionUpdater(updater);
			} catch (BadPositionCategoryException exception) {
				
			}
		}