mExistsInBoth = true;
pInfo.mExistsInBoth = true;
boolean consistent = true;
for (ClassInfo cInfo : mClasses.values()) {
if (pInfo.mClasses.containsKey(cInfo.name())) {
if (!cInfo.isConsistent(pInfo.mClasses.get(cInfo.name()))) {
consistent = false;
}
} else {
Errors.error(Errors.REMOVED_CLASS, cInfo.position(),
"Removed public class " + cInfo.qualifiedName());
consistent = false;
}
}
for (ClassInfo cInfo : pInfo.mClasses.values()) {
if (!cInfo.isInBoth()) {
Errors.error(Errors.ADDED_CLASS, cInfo.position(),
"Added class " + cInfo.name() + " to package "
+ pInfo.name());
consistent = false;
}
}
return consistent;