unused declaration inspection: clone EntryPoint-s in inspection constructor because each of EntryPoint has different settings for each profiles/scopes IDEA-157208

This commit is contained in:
Dmitry Batkovich
2016-07-07 16:13:58 +03:00
parent a8f13c9f69
commit c9a32c1e0a
@@ -92,7 +92,7 @@ public class UnusedDeclarationInspectionBase extends GlobalInspectionTool {
List<EntryPoint> deadCodeAddIns = new ArrayList<EntryPoint>(extensions.length);
for (EntryPoint entryPoint : extensions) {
try {
deadCodeAddIns.add(entryPoint);
deadCodeAddIns.add(entryPoint.clone());
}
catch (Exception e) {
LOG.error(e);