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
int token= scanner.getNextToken();
			while (token != ITerminalSymbols.TokenNameEOF) {
				if (TokenScanner.isComment(token)) {
					int currStart= scanner.getCurrentTokenStartPosition();
					int currEnd= scanner.getCurrentTokenEndPosition() + 1;
					if (currStart <= start && end <= currEnd) {
						return scanner;
					}
				}
				token= scanner.getNextToken();
			}
				
		} catch (InvalidInputException e) {
			
		}
		return null;
	}	
	
	private boolean hasContent(String string) {
		for (int i= 0; i < string.length(); i++) {
			char ch= string.charAt(i);
			if (Character.isLetter(ch)) {
				return true;
			}
		}
		return false;
	}	
	
}