mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Clarify method.
This commit is contained in:
parent
9d3d836047
commit
6cc13ab881
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue