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
} catch (BadLocationException exception) {
			
		}
		return content;
	}
	/**
	 * Does the border <code>border</code> exist?
	 * 
	 * @param border
	 *                  The type of the border. Must be a border attribute of <code>CommentRegion</code>.
	 * @return <code>true</code> iff this border exists, <code>false</code>
	 *               otherwise.
	 */
	protected final boolean hasBorder(final int border) {
		return (fBorders & border) == border;
	}
	/**
	 * Does the comment range consist of letters and digits only?
	 * 
	 * @param range
	 *                   The comment range to text
	 * @return <code>true</code> iff the comment range consists of letters
	 *               and digits only, <code>false</code> otherwise.
	 */
	protected final boolean isAlphaNumeric(final CommentRange range) {
		final String token= getText(range.getOffset(), range.getLength());
		for (int index= 0; index < token.length(); index++) {
			if (!Character.isLetterOrDigit(token.charAt(index)))
				return false;
		}