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

Typo fix and documentation enhancement

This commit is contained in:
John Cortell 2009-09-25 21:22:39 +00:00
parent be47c82100
commit 406c75c027

View file

@ -229,6 +229,13 @@ public class AbstractCachingVMProvider extends AbstractVMProvider
*/
Map<String, Object> fArchiveProperties = null;
/**
* Ensure this cache entry has a map in which to hold the children
* elements. If it doesn't, create one and give it an initial capacity
* of 30% more than the number of children we know the parent currently
* has (give it some room to grow). If we don't know the child count,
* give the map some nominal initial capacity.
*/
void ensureChildrenMap() {
if (fChildren == null) {
Integer childrenCount = fChildrenCount;
@ -454,7 +461,7 @@ public class AbstractCachingVMProvider extends AbstractVMProvider
new ViewerDataRequestMonitor<Boolean>(getExecutor(), update) {
@Override
protected void handleCompleted() {
// Update completed. Write value to cache only if update successed
// Update completed. Write value to cache only if update succeeded
// and the cache entry wasn't flushed in the mean time.
if(isSuccess()) {
if (flushCounter == entry.fFlushCounter) {