Parameter order fixed (caused assertion failure)

This commit is contained in:
Andrey Breslav
2012-12-26 14:26:15 +04:00
parent 0fc0230069
commit 6dfc923cf8
@@ -85,7 +85,7 @@ public class IDELightClassGenerationSupport extends LightClassGenerationSupport
for (JetFile file : files) {
FqName fqName = JetPsiUtil.getFQName(file);
assert QualifiedNamesUtil.isSubpackageOf(fqn, fqName) : "Registered package is not a subpackage of actually declared package:\n" +
assert QualifiedNamesUtil.isSubpackageOf(fqName, fqn) : "Registered package is not a subpackage of actually declared package:\n" +
"in index: " + fqn + "\n" +
"declared: " + fqName;
FqName subpackage = QualifiedNamesUtil.plusOneSegment(fqn, fqName);