mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vfs][refactoring] more helper methods to CaseSensitivity enum
GitOrigin-RevId: 37bcb5c411f85db3cc69b289e9e2b8bd0cb12e5b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
48e5349bbe
commit
4232396663
+1
-5
@@ -192,11 +192,7 @@ public abstract class CompilerReferenceServiceBase<Reader extends CompilerRefere
|
||||
if (basePath != null) {
|
||||
File file = new File(basePath);
|
||||
FileAttributes.CaseSensitivity sensitivity = FileSystemUtil.readParentCaseSensitivity(file);
|
||||
return switch (sensitivity) {
|
||||
case UNKNOWN -> SystemInfo.isFileSystemCaseSensitive;
|
||||
case SENSITIVE -> true;
|
||||
case INSENSITIVE -> false;
|
||||
};
|
||||
return sensitivity.toBooleanWithDefault(SystemInfo.isFileSystemCaseSensitive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user