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
fPreferences= preferences;
		fDocument= document;
		
		fClear= fPreferences.get(PreferenceConstants.FORMATTER_COMMENT_CLEARBLANKLINES) == IPreferenceStore.TRUE;
		fTextMeasurement= textMeasurement;
		
		if (fPreferences.containsKey(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE))
			try {
				fTabs= Integer.parseInt((String) fPreferences.get(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE));
			} catch (NumberFormatException e) {
				fTabs= 4;
			}
		else
			fTabs= 4;
		final ILineTracker tracker= new ConfigurableLineTracker(new String[] { delimiter });
		IRegion range= null;
		CommentLine line= null;
		tracker.set(getText(0, getLength()));
		final int lines= tracker.getNumberOfLines();
		fSingleLine= lines == 1;
		try {
			for (int index= 0; index < lines; index++) {
				range= tracker.getLineInformation(index);
				line= CommentObjectFactory.createLine(this);
				line.append(new CommentRange(range.getOffset(), range.getLength()));
				fLines.add(line);
			}
		} catch (BadLocationException exception) {
			
		}