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 buffer.toString();
	}
	/**
	 * Returns the length of the in expanded characters.
	 * 
	 * @param reference
	 *                   The string to get the length for
	 * @return The length of the string in expanded characters
	 */
	protected final int stringToLength(final String reference) {
		int tabs= 0;
		int count= reference.length();
		for (int index= 0; index < count; index++) {
			if (reference.charAt(index) == '\t')
				tabs++;
		}
		count += tabs * (fTabs - 1);
		return count;
	}
	/**
	 * Returns the width of the string in pixels.
	 * 
	 * @param reference
	 *                   The string to get the width for
	 * @return The width of the string in pixels
	 */
	protected final int stringToPixels(final String reference) {
		final StringBuffer buffer= new StringBuffer();
		char character= 0;
		for (int index= 0; index < reference.length(); index++) {