Bug 44862 Remove task tag quick fix shouldn't automatically delete the full line
In the following code the quick fix to remove the todo deletes the full line rather than just the end of line comment. if (!display.isDisposed()) ;//TODO display.beep(); }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TaskMarkerProposal.java
TextBuffer buffer= null;
		try {
			buffer= TextBuffer.acquire(change.getFile());
			pos= getUpdatedPosition(buffer);
		} finally {
			if (buffer != null) {
				TextBuffer.release(buffer);
			}
		}
		if (pos != null) {
			rootEdit.addChild(new ReplaceEdit(pos.getOffset(), pos.getLength(), "")); 
		} else {
			rootEdit.addChild(new ReplaceEdit(fLocation.getOffset(), fLocation.getLength(), "")); 
		}
		return change;
	}
	
		
		
	private Position getUpdatedPosition(TextBuffer buffer) {
		IScanner scanner= getSurroundingComment(buffer);
		if (scanner == null) {
			return null;
		}
		int commentStart= scanner.getCurrentTokenStartPosition();
		int commentEnd= scanner.getCurrentTokenEndPosition() + 1;
		TextRegion startRegion= buffer.getLineInformationOfOffset(commentStart);
		int start= startRegion.getOffset();
		if (hasContent(buffer.getContent(start, fLocation.getOffset() - start))) {
			return null;