allPkgFragmentsCache = new HashtableOfArrayToObject();
for (int i = 0; i < length; i++) {
IPackageFragmentRoot root = allRoots[i];
DeltaProcessor.RootInfo rootInfo = (DeltaProcessor.RootInfo) rootInfos.get(root.getPath());
JavaProject rootProject = rootInfo == null ? project : rootInfo.project;
HashSetOfArray fragmentsCache;
if (rootProject.equals(project)) {
// retrieve package fragments cache from this project
fragmentsCache = (HashSetOfArray) cache.pkgFragmentsCaches.get(root);
} else {
// retrieve package fragments cache from the root's project
ProjectCache rootProjectCache;
try {
rootProjectCache = rootProject.getProjectCache();
} catch (JavaModelException e) {
// project doesn't exit
continue;
}
fragmentsCache = (HashSetOfArray) rootProjectCache.pkgFragmentsCaches.get(root);
}
if (fragmentsCache == null) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=183833
fragmentsCache = new HashSetOfArray();
initializePackageNames(root, fragmentsCache);
}
Object[][] set = fragmentsCache.set;
for (int j = 0, length2 = set.length; j < length2; j++) {
String[] pkgName = (String[]) set[j];