if (removeMatchingJdkClasses(externalClasses, name)) {
if (dep.isExport()) {
msg("info.ok");
} else {
msg("error.markShared");
dep = new ModuleDependencyInfo(dep.getName(), dep.getVersion(), dep.isOptional(), true);
hasProblems = true;
}
} else {
if (dep.isExport()) {
msg("info.okButUnused");
dep = new ModuleDependencyInfo(dep.getName(), dep.getVersion(), dep.isOptional(), false);
} else {
msg("info.ok");
}
}
} else {
ArtifactContext context = new ArtifactContext(name, dep.getVersion(), ArtifactContext.CAR, ArtifactContext.JAR);
File artifact = getRepositoryManager().getArtifact(context);
if (artifact != null && artifact.exists()) {
try {
Set<String> importedClasses = JarUtils.gatherClassnamesFromJar(artifact);
if (removeMatchingClasses(externalClasses, importedClasses)) {
if (dep.isExport()) {
msg("info.ok");
} else {
msg("error.markShared");
dep = new ModuleDependencyInfo(dep.getName(), dep.getVersion(), dep.isOptional(), true);
hasProblems = true;
}
} else {
if (dep.isExport()) {
msg("info.okButUnused");
dep = new ModuleDependencyInfo(dep.getName(), dep.getVersion(), dep.isOptional(), false);
} else {
msg("info.ok");
}
}
} catch (IOException e) {