1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2016-06-07 19:41:29 -07:00
parent 045b4534d0
commit e710bba51e
2 changed files with 3 additions and 3 deletions

View file

@ -257,7 +257,7 @@ class PDOMCPPClassScope implements ICPPClassScope, IIndexScope {
IPDOMVisitor visitor= new PopulateMap(map);
visitor.visit(ct);
ct.acceptUncached(visitor);
pdom.putCachedResult(key, new SoftReference<CharArrayObjectMap<?>>(map));
pdom.putCachedResult(key, new SoftReference<>(map));
}
return map;
}

View file

@ -153,11 +153,11 @@ class PDOMCPPEnumScope implements ICPPEnumScope, IIndexScope {
// there is no cache, build it:
List<IPDOMCPPEnumerator> enumerators = new ArrayList<>();
enumeration.loadEnumerators(enumerators);
map = new CharArrayObjectMap<IPDOMCPPEnumerator>(enumerators.size());
map = new CharArrayObjectMap<>(enumerators.size());
for (IPDOMCPPEnumerator enumerator : enumerators) {
map.put(enumerator.getNameCharArray(), enumerator);
}
pdom.putCachedResult(key, new SoftReference<CharArrayObjectMap<?>>(map));
pdom.putCachedResult(key, new SoftReference<>(map));
}
return map;
}