mark class as entry even if it contains constructors (IDEA-133300)

This commit is contained in:
Anna Kozlova
2014-11-21 17:36:44 +01:00
parent a68c236456
commit 6d290e2cb0
@@ -213,15 +213,12 @@ public abstract class EntryPointsManagerBase extends EntryPointsManager implemen
List<RefMethod> refConstructors = refClass.getConstructors();
if (refConstructors.size() == 1) {
addEntryPoint(refConstructors.get(0), isPersistent);
return;
}
else if (refConstructors.size() > 1) {
// Many constructors here. Need to ask user which ones are used
for (int i = 0; i < refConstructors.size(); i++) {
addEntryPoint(refConstructors.get(i), isPersistent);
}
return;
}
}