fail early if found class is different from requested
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ public class PsiClassFinderForJvm implements PsiClassFinder {
|
||||
if (result != null) {
|
||||
FqName actualQualifiedName = new FqName(result.getQualifiedName());
|
||||
if (!actualQualifiedName.equals(qualifiedName)) {
|
||||
// throw new IllegalStateException("requested " + qualifiedName + ", got " + actualQualifiedName);
|
||||
throw new IllegalStateException("requested " + qualifiedName + ", got " + actualQualifiedName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user