lower first only file name not have ext. fixed #23

This commit is contained in:
林万程
2023-01-17 21:11:50 +08:00
parent 7e8c240a21
commit e76dd01a03

View File

@@ -31,6 +31,10 @@ public class PsiClassUtils {
if (psiClasses.length != 0) {
return psiClasses;
}
// issue #23
if (virtualFile.getExtension() == null || className.length() != fileName.length()) {
return PsiClass.EMPTY_ARRAY;
}
@NotNull char[] chars = fileName.toCharArray();
if (chars.length < 1 || chars[0] < 97 || 122 < chars[0]) {
return PsiClass.EMPTY_ARRAY;