Bug 46341 [formatting][implementation] comment line length not correctly applied
(1105 nightly build) when formatting the declaration below, with all default code formatter options (i.e. comment line length = 80), the last word '<code>String</code>' is not correctly moved to anotherline, leaving the last line longer than 80 characters (about 87 characters i think..) /** * Sets the set of identifiers to active activities. * * @param activeActivityIds * the set of identifiers to active activities. This set may be * empty, but it must not be <code>null</code>. If this set * is not empty, it must only contain instances of <code>String</code>. */ void setActiveActivityIds(Set activeActivityIds);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentRegion.java
* @return <code>true</code> iff this region is single line, <code>false</code>
	 *               otherwise.
	 */
	protected final boolean isSingleLine() {
		return fSingleLine;
	}
	/**
	 * Logs a text edit operation occurred during the formatting process
	 * 
	 * @param change
	 *                   The changed text
	 * @param position
	 *                   Offset measured in comment region coordinates where to apply
	 *                   the changed text
	 * @param count
	 *                   Length of the range where to apply the changed text
	 * @return The resulting text edit, or <code>null</code> iff the
	 *               operation can not be performed.
	 */
	protected final TextEdit logEdit(final String change, final int position, final int count) {
		TextEdit child= null;
		try {
			final int base= getOffset() + position;
			final String content= fDocument.get(base, count);
			if (!change.equals(content)) {
				if (count > 0)
					child= new ReplaceEdit(base, count, change);
				else
					child= new InsertEdit(base, change);
				fResult.addChild(child);