Add warning in case similar module names

This commit is contained in:
Roman Artemev
2018-04-06 16:06:49 +03:00
parent 4cdd121c21
commit 96b6cec33f
@@ -221,6 +221,10 @@ public class JsConfig {
}
}
if (modules.contains(getModuleId())) {
report.warning("Module \"" + getModuleId() + "\" depends from module with the same name");
}
Set<String> friendLibsSet = new HashSet<>(getFriends());
metadata.addAll(metadataList);
if (friendLibsSet.contains(path)){