for (String seedTypeName : seedTypeNames) {
CompilationUnit unit = getUnitForType(logger, classMapBySource,
seedTypeName);
if (alreadyAdded.add(unit)) {
icus.add(new CompilationUnitAdapter(unit));
} else {
logger.log(TreeLogger.WARN, "Duplicate compilation unit '"
+ unit.getDisplayLocation() + "'in seed types");
}
}
/*
* Add all SingleJsoImpl types that we know about. It's likely that the
* concrete types are never explicitly referenced from the seed types.
*/
for (JClassType intf : intfTypes) {
String implName = oracle.getSingleJsoImpl(intf).getQualifiedSourceName();
CompilationUnit unit = getUnitForType(logger, classMapBySource, implName);
if (alreadyAdded.add(unit)) {
icus.add(new CompilationUnitAdapter(unit));
logger.log(TreeLogger.SPAM, "Forced compilation of unit '"
+ unit.getDisplayLocation()
+ "' becasue it contains a SingleJsoImpl type");
}
}