JavaElementFinder: fix classes not being sorted as intended
This is tested by `whole project` inspection tests #KT-24704 Fixed
This commit is contained in:
@@ -186,7 +186,7 @@ class JavaElementFinder(
|
|||||||
|
|
||||||
private fun List<PsiClass>.sortByClasspathPreferringNonFakeFiles(searchScope: GlobalSearchScope): List<PsiClass> {
|
private fun List<PsiClass>.sortByClasspathPreferringNonFakeFiles(searchScope: GlobalSearchScope): List<PsiClass> {
|
||||||
return this.sortedWith(byClasspathComparator(searchScope)).sortedBy {
|
return this.sortedWith(byClasspathComparator(searchScope)).sortedBy {
|
||||||
this is FakeLightClassForFileOfPackage
|
it is FakeLightClassForFileOfPackage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user