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/MultiCommentRegion.java
int count= 0;
		boolean paragraph= false;
		String token= null;
		CommentRange range= null;
		CommentRange blank= null;
		for (final ListIterator iterator= getRanges().listIterator(); iterator.hasNext();) {
			range= (CommentRange)iterator.next();
			count= range.getLength();
			if (count > 0) {
				token= getText(range.getOffset(), count).toLowerCase();
				markJavadocTag(range, token);
				if (!paragraph && (range.hasAttribute(COMMENT_ROOT) || range.hasAttribute(COMMENT_PARAMETER))) {
					iterator.previous();
					while (iterator.hasPrevious()) {
						blank= (CommentRange)iterator.previous();
						if (blank.hasAttribute(COMMENT_BLANKLINE))
							iterator.remove();
						else
							break;
					}
					range.setAttribute(COMMENT_PARAGRAPH);
					paragraph= true;
				}
				markHtmlTag(range, token);
			}
		}
		markHtmlRanges();
	}
}