1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Documentation enhancement

This commit is contained in:
John Cortell 2009-09-29 01:56:25 +00:00
parent 598295599b
commit d4d9d8d5cc

View file

@ -1131,9 +1131,16 @@ public class AbstractCachingVMProvider extends AbstractVMProvider
properties = entry.fProperties;
properties.putAll(getData());
// Make sure that all the properties that were requested by the user are in the
// properties map. Otherwise, we'll never get a cache hit because the cache
// test makes sure that all keys that are requested are in the properties map.
// Make sure that all the properties that were
// requested by the update object are in the
// cache entry's properties map. It's possible the
// ViewerDataRequestMonitor was able to provide
// us only a subset of the requested ones. We
// want to prevent that from causing future
// cache misses, since a cache hit requires the
// cache entry to contain all requested
// properties. Use a null value for the missing
// items.
for (String updateProperty : update.getProperties()) {
if (!properties.containsKey(updateProperty)) {
properties.put(updateProperty, null);