1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Clarify method.

This commit is contained in:
Marc Khouzam 2010-04-30 15:31:12 +00:00
parent 9d3d836047
commit 6cc13ab881

View file

@ -607,6 +607,10 @@ public class CommandCache implements ICommandListener
CommandInfo cachedCmd = new CommandInfo( CommandStyle.NONCOALESCED, genericCommand, null) ;
// It is important to actually fetch the content of the fPendingQCommandsNotYetSent map
// instead of only using 'cachedCmd'. This is because although cachedCmd can be considered
// equal to unqueuedCommand, it is not identical and we need the full content of unqueuedCommand.
// For instance, cachedCmd does not have the list of requestMonitors that unqueuedCommand has.
for ( CommandInfo unqueuedCommand : new ArrayList<CommandInfo>(fPendingQCommandsNotYetSent) ) {
if ( unqueuedCommand.equals( cachedCmd )) {
fPendingQCommandsNotYetSent.remove(unqueuedCommand);